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

Cannot run asynchronous tasks using .apply_async() if adding periodic tasks at the same time #1

Open
aprilahijriyan opened this issue Jan 20, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@aprilahijriyan
Copy link
Collaborator

I don't really understand what's going on with this issue, if you uncomment the code below run the sample code again, and then add the task via the API, it will crash.

# FIXME: I don't know why, when I uncomment the code below
# the task can't be called by .apply_async() (maybe blocked by another process?)
# @celery.on_after_configure.connect
# def init_jobs(sender: Celery, **kwds):
# print("init jobs")
# sig = say_hello.s()
# sender.add_periodic_task(5, sig, task_id="say_hello_periodic_task")

@aprilahijriyan aprilahijriyan added the help wanted Extra attention is needed label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant