Closed emilio-cea closed 1 year ago
It seems this package only overloads the apply_async
method of celery, so I had to switch from send_task
to that and it seems to work. Still looking into how to integrate with my project but it's progressing nicely, good work!
In my main file, I have defined a celery app like so:
and a task decorator like this:
Then I assume I can just use
send_task
with theeta
flag containing adatetime
object:and I would execute a
celery longerm_scheduler
command on a cronjob in order for this task to be acknowledged and executed, but tasks are being acked instantly and they wait for theeta
given like a normal task would do.Also nothing appears on the specified Redis DB setting (
longterm_scheduler_backend=settings.REDIS_LONGTERM_SCHEDULER
) when sending the task so I don't think this is working the way I thought.I assumed that when using the
send_task
(orapply_async
) with aneta
a job would appear (and the task wouldn't have an eta) on mysettings.REDIS_LONGTERM_SCHEDULER
DB, and executingcelery longerm_scheduler
would then ack that task and execute it when needed.Any pointers as to where to look for faulty config?
Am I sending the tasks properly?
Are the task decorators used properly?