I have a celery task as follows
@celery_app_site24x7.task(queue='site24x7')
def createWebsiteMonitoring(**kwargs):
""" Celery Task to create or update website Moniroting """
time.sleep(100)
site24x7Instance = Business_api.thirdpartyFactory.instantiate(
"site24x7")
# site24x7Instance.login()
return site24x7Instance.createWebsiteMonitoring(**kwargs)
In my celery worker log I can find that is succedded with success:
[2019-01-18 15:14:42,633: INFO/ForkPoolWorker-2] Task celery_tasks.site24x7.createWebsiteMonitoring[c2a5ad46-fde0-4c2c-ac46-3d2f7c9f5861] succeeded in 109.22832555975765s: '279832000003624811'
However in Flower I see that its still in "RECEIVED" State:
Am experiencing this issue after i added the time.sleep(100)
Is there any configuration that needs to be added? Or am I doing it wrong?
Am launching flower as follows:
flower -A monitoringExterne --app=monitoringExterne.celerys.$APP --port=8080 --broker=$CONNECTOR/$DATABASE --debug > /dev/stdout
UPDATE
The createWebsiteMonitoring()
method sends a requests
POST to a URL.