Using flask with celery
url_for within celery
Celery can be configured to use flask app's application_context.
url_for typically needs a
request_context (which is always
available in functions that define flask routes), it is not able to build a url
Flask lets us generate urls in the absence of a request if a
is configured for the app.
The default url scheme for generating urls in the absence of a request context
http. This can be set to
https either on a case by case basis by passing
url_for, or by setting the config variable
More on the application context here.
More on the request context here.