Skip to content

fix(scheduler): discover schedules of shared tasks in LabelScheduleSource - #698

Open
sinnercode228 wants to merge 1 commit into
taskiq-python:masterfrom
sinnercode228:fix/label-schedule-source-shared-tasks
Open

sinnercode228 wants to merge 1 commit into
taskiq-python:masterfrom
sinnercode228:fix/label-schedule-source-shared-tasks

Conversation

@sinnercode228

Copy link
Copy Markdown

…urce

Tasks created with AsyncSharedBroker are bound to the shared broker, so LabelScheduleSource treated every one of them as a foreign task: it logged a "Broker for ... doesn't match scheduler's broker" warning and skipped the task, even when the shared broker's default broker was the scheduler's broker. As a result shared tasks with a schedule label were never scheduled, and shared tasks without schedules (e.g. the ones registered by taskiq-pipelines) only produced noise in the scheduler log.

Resolve the effective broker of a task the same way SharedDecoratedTask.kicker() does, and warn only when a skipped task actually has schedules that are going to be ignored.

Closes: #455
Closes: #526

…urce

Tasks created with AsyncSharedBroker are bound to the shared broker, so
LabelScheduleSource treated every one of them as a foreign task: it logged
a "Broker for ... doesn't match scheduler's broker" warning and skipped
the task, even when the shared broker's default broker was the scheduler's
broker. As a result shared tasks with a `schedule` label were never
scheduled, and shared tasks without schedules (e.g. the ones registered by
taskiq-pipelines) only produced noise in the scheduler log.

Resolve the effective broker of a task the same way
SharedDecoratedTask.kicker() does, and warn only when a skipped task
actually has schedules that are going to be ignored.

Closes: taskiq-python#455
Closes: taskiq-python#526

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't match scheduler's broker Scheduler log spam: broker mismatch between AsyncSharedBroker and Redis ListQueueBroker

1 participant