-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes/various fixes and optimizations (#1229)
* presumably handle no task state being set in executor exception, by polling the task anyway. allow wait_on_start to be set as an integer N seconds to timeout * whoops, cant poll an exceptioned app. set task's state to FAILED on exception. test wait_on_start=int * have to use Union on older pythons :( * remove check that received calc_type is correct. On the worker side, its received from the manager, not modified or passed anywhere, then returned as-is to the manager. * removes the last check in check_received_calc. the actual logging/checking is performed on the worker-side in the _handle_calc finally block. * various cleanups in worker.py * only import cProfile if the profile option is enabled * try adding TASK_FAILED_TO_START state * passing through wait_on_start int value to _wait_on_start in base class * adjust test_retries_launch_fail for new status * add FAILED_TO_START to docs * catch exception and break in polling_loop with warning. set task status to finished upon retry. test these things * add instruction to run extra-CI tests as part of release process * these conditions always only execute one branch. e.g. if we're running a gen on the worker side, we always have a gen count * undoing changes to worker.run()
- Loading branch information
Showing
8 changed files
with
85 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters