Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding decorators to worker does not add them to included routers #282

Closed
DanielEidlin opened this issue Mar 7, 2022 · 0 comments · Fixed by #281
Closed

Adding decorators to worker does not add them to included routers #282

DanielEidlin opened this issue Mar 7, 2022 · 0 comments · Fixed by #281

Comments

@DanielEidlin
Copy link
Contributor

Describe the bug
When adding decorators to a worker, those decorators are not added to the routers the worker includes.

To Reproduce

  1. Create a worker with before and/or after decorators.
  2. Create a router.
  3. Use the worker to include the router.
  4. Run the worker.
  5. Observe that the decorators are never called when the router's tasks are being executed.

Expected behavior
The decorators added to the worker should run before/after every task defined using the included router.

Screenshots
None.

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 a pull request may close this issue.

1 participant