0

Celery. An app sends a task to be executed.

r = task.delay()

Is it possible to execute code in the app address space upon task end other than by polling r?

Eduardo
  • 1,235
  • 16
  • 27

1 Answers1

1

There is no built-in way in celery. Generally speaking, you will have to come up with your own way for the task to send a notification back to your app if you want to perform the callback processing in the calling application's address space.

Here are some patterns you can use:

2ps
  • 15,099
  • 2
  • 27
  • 47