python - Celery gives no error with bad remote task names, why? -
using "send_task" celery never verifies remote task exists i.e:
app.send_task('tasks.i.dont.exist', args=[], kwargs={})
celery seems still return message i.e.:
<asyncresult: b8c1425a-7411-491f-b75a-34313832b8ba>
is there way fail if remote task not exist?
i've tried adding .get()
, freezes.
according documentation:
if task not registered in current process can execute task name.
you using send_task() method of celery instance
if want verification consider using delay
instead.
you can read more how execute celery tasks here.
Comments
Post a Comment