Skip to content

Commit 4462985

Browse files
Update taskiq/schedule_sources/label_based.py
Co-authored-by: Pavel Kirilin <[email protected]>
1 parent 305e874 commit 4462985

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

taskiq/schedule_sources/label_based.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ async def get_schedules(self) -> List["ScheduledTask"]:
3030
for task_name, task in self.broker.get_all_tasks().items():
3131
if task.broker != self.broker:
3232
# if task broker doesn't match self, something is probably wrong
33-
logger.warning(f"Broker for {task_name} ({task.broker}) doesn't match self ({self.broker})")
33+
logger.warning(
34+
f"Broker for {task_name} ({task.broker}) doesn't "
35+
f"match scheduler's broker ({self.broker})"
36+
)
3437
continue
3538
for schedule in task.labels.get("schedule", []):
3639
if "cron" not in schedule and "time" not in schedule:

0 commit comments

Comments
 (0)