Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradual update of doit.dat file for multi-tasks (subtasks) #463

Open
ajafarihub opened this issue Nov 3, 2023 · 0 comments
Open

Gradual update of doit.dat file for multi-tasks (subtasks) #463

ajafarihub opened this issue Nov 3, 2023 · 0 comments

Comments

@ajafarihub
Copy link

ajafarihub commented Nov 3, 2023

If a task has a lot of subtasks, each demanding for a lot of computation, it is very likely that the processor will not be able to finish the entire task (essentially all the subtasks) due to limitations in memory or computation resources. So, the task will break at some point in the middle. For example, we can have in total 100 subtasks and after a 'doit' command only 30 of them have been performed successfully, and the task has been killed in the meantime of executing the 31-th subtask. In this situation, because in pydoit the update of any task will only happen after the entire task (all of its subtasks) has ended successfully, obviously the task won't be updated. This means, another doit command restart to process all the sub-tasks from the begining again, and the 30 subtasks that we did finish in the previous doit round are lost (not considered to be updated). And the story repeat itself, because any time we run doit command, only few of the subtasks are done successfully and the whole task breaks at some point.

So, it would be very useful in such a situation to tell the doit that, it makes an update of the doit.dat file after each subtask is successfully done. Or even better would be to say after each N subtasks the update of doit.dat file takes place, in order to save time just in case that the update will take a lot of time, especially if the number of subtasks is too large.

As far as I had a look into the documentation of pydoit, this feature does not currently exist in Pydoit.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant