Lime Taskhandler is a wrapper around celery.
Run lime-task as a service¶
The service accepts the same options as starting a celery worker.
- Loglevel: The default celery loglevel is
warning, so it can be very helpful for local development to explicitly lower it to
lime-task-handler --loglevel info
- Namespace: If you have configured a namespace in your
config.yamlfile like shown below you need to tell that taskhandler to consume from that queue when you start the service. Otherwise the service will only consume from
globals: namespace: <NAMESPACE>
lime-task-handler --queues lime_task_queue_<NAMESPACE>
- Scheduled tasks: you need to start the taskhandler "on beat" in order to run tasks on a schedule
All this options can obviously be combined in one command:
lime-task-handler --loglevel info --queues lime_task_queue_<NAMESPACE> --beat
Alternatively make sure that the lime docker container taskhandler is running.