@@ -0,0 +1,574 @@
+# Enhydris on its own does not use Celery (and it's not listed in requirements.txt).%0A# However, Celery is used by some add-on apps like enhydris-autoprocess and%0A# enhydris-synoptic. To simplify setup and use a single set of celery workers for all%0A# such apps, we don't specify a celery %22app%22 in the plugin; just a single celery app%0A# here that autodiscovers all tasks.%0A%0Afrom celery import Celery%0A%0Afrom enhydris import set_django_settings_module%0A%0Aset_django_settings_module()%0A%0Aapp = Celery(%22enhydris%22)%0A%0Aapp.config_from_object(%22django.conf:settings%22)%0Aapp.autodiscover_tasks()%0A

Use a single celery app for all add-on apps