You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to issue long running task like deleting posts in background job, I decided to integrate Celery with Flask as a new beginner according to flask official tutorial at Background Tasks with Celery But an error report occurs:
[2023-10-22 18:15:47,668\] INFO in __init__: Microblog startup
[2023-10-22 18:15:47,684\] INFO in __init__: Microblog startup
Usage: celery \[OPTIONS\] COMMAND \[ARGS\]...
Try 'celery --help' for help.
Error: Invalid value for '-A' / '--app':
Unable to load celery application.
'str' object has no attribute 'level'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In order to issue long running task like deleting posts in background job, I decided to integrate Celery with Flask as a new beginner according to flask official tutorial at Background Tasks with Celery But an error report occurs:
The file structure is as follows:
The following code is :
The make_celery code is:
I used this on windows platform and I don't know whether it is related or not, I would really appreciate it if anyone can help.
Beta Was this translation helpful? Give feedback.
All reactions