'Celery Beat Django
I am trying to run beat celery function but I am getting an error of:
Error: Unable to parse extra configuration from command line. Reason: not enough values to unpack (expected 2, got 1)
This is my code:
@periodic_task(name="fun_123", run_every=crontab(minute="1"))
def fun_123(context):
bill = Bill.objects.get(id=context["id"])
if bill.date < make_aware(datetime.now()):
bill.check = False
bill.save()
This is my command that I am using
command: celery -A backend worker -l DEBUG -BE fun_123
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
