Skip to content

Commit 613ad26

Browse files
committed
minor
1 parent 82a11cd commit 613ad26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/dask-task-models-library/src/dask_task_models_library/plugins/task_life_cycle_worker_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def transition(
3434
):
3535
_logger.info("Task '%s' transition from %s to %s", key, start, finish)
3636
assert self._worker # nosec
37+
assert isinstance(self._worker, Worker) # nosec
3738
self._worker.log_event(
3839
TASK_LIFE_CYCLE_EVENT.format(key=key),
3940
TaskLifeCycleState.from_worker_task_state(

0 commit comments

Comments
 (0)