Skip to content

Commit

Permalink
add warning for Task without Job
Browse files Browse the repository at this point in the history
  • Loading branch information
michelwi committed Mar 22, 2024
1 parent 018d403 commit 94d0009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sisyphus/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,5 +484,6 @@ def get_worker_call(self, task_id=None):
if hasattr(self, "_job"):
call = self._job._sis_worker_wrapper(self._job, self.name(), call)
else:
logging.warning(f"Task {self.name()} run without an associated Job. Using global worker_wrapper.")
call = gs.worker_wrapper(None, self.name(), call)
return call

0 comments on commit 94d0009

Please sign in to comment.