Skip to content

Commit

Permalink
remove self if self in args.
Browse files Browse the repository at this point in the history
Otherwise daisy fails to call a method as a start worker function
  • Loading branch information
pattonw committed Aug 27, 2024
1 parent 2fb2c24 commit f404286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daisy/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def __init__(
self.init_callback_fn = self._default_init

args = getfullargspec(process_function).args
if 'self' in args:
args.remove('self')
if len(args) == 0:
# spawn function
self.spawn_worker_function = process_function
Expand Down

0 comments on commit f404286

Please sign in to comment.