Skip to content

Commit 24b7443

Browse files
authored
fix(Runner): don't raise NoTasksAvailableError if a cron tasks exists (#252)
1 parent 8029a40 commit 24b7443

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

silverback/runner.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ async def startup(self) -> list[Coroutine]:
260260
TaskType.SYSTEM_USER_TASKDATA, TaskType.EVENT_LOG
261261
)
262262

263-
if len(new_block_tasks_taskdata) == len(event_log_tasks_taskdata) == 0:
263+
if (
264+
len(cron_tasks_taskdata)
265+
== len(new_block_tasks_taskdata)
266+
== len(event_log_tasks_taskdata)
267+
== 0
268+
):
264269
raise NoTasksAvailableError()
265270

266271
return [

0 commit comments

Comments
 (0)