Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goFrendiAsgard committed Dec 11, 2023
1 parent a312ddb commit 5ff387d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/zrb/task/recurring_task.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from zrb.helper.typing import (
Any, Callable, Iterable, Mapping, Optional, Union
Any, Callable, Iterable, List, Mapping, Optional, Union
)
from zrb.helper.typecheck import typechecked
from zrb.helper.accessories.name import get_random_name
Expand Down Expand Up @@ -75,8 +75,10 @@ def __init__(
should_execute=should_execute,
return_upstream_result=return_upstream_result,
)
self._task = task
self._triggers = triggers
self._task: AnyTask = task.copy()
self._triggers: List[AnyTask] = [
trigger.copy() for trigger in triggers
]

async def _set_keyval(self, kwargs: Mapping[str, Any], env_prefix: str):
await super()._set_keyval(kwargs=kwargs, env_prefix=env_prefix)
Expand Down

0 comments on commit 5ff387d

Please sign in to comment.