Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

How is the circular import of celery tasks handled? #41

Open
rlam3 opened this issue Nov 11, 2015 · 1 comment
Open

How is the circular import of celery tasks handled? #41

rlam3 opened this issue Nov 11, 2015 · 1 comment

Comments

@rlam3
Copy link

rlam3 commented Nov 11, 2015

How is the circular import of celery tasks handled?

@bngsudheer
Copy link

I noticed this too after implementing the pattern in my application. Try to import any application object like a model or a service from tasks.py, you will notice the circular import issues.

In my application, I could not import the tasks defined in tasks.py on the module level. I had to import them in the method/function level to avoid circular import issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants