diff options
| author | 2020-02-25 22:22:01 -0800 | |
|---|---|---|
| committer | 2020-02-25 22:25:20 -0800 | |
| commit | 4a11bf22cc9e894271b896eb9fca0c3cff085766 (patch) | |
| tree | ff9047367d728f3dd3d91f5589b8b108ebb033c4 /tests/test_helpers.py | |
| parent | Scheduler: improve cancel_task's docstring (diff) | |
Scheduler: only delete the task in the done callback if tasks are same
To prevent a deletion of task rescheduled with the same ID, the callback
checks that the stored task is the same as the done task being handled.
* Only delete the task; it doesn't need to be cancelled because the it
is already done
* Revise the callback's docstring to explain the new behaviour
* Rename `task` parameter to `done_task`
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions