KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to create a periodic task for celery using django-celery 's admin interface. I have a task set up which runs great when called manually or by script. It just doesn't work through celerybeat . According to the debug logs the task is set to enabled = False on first retrieval and I wonder why. When adding the periodic task and passing [1, False] as positional arguments, the task is automatically disabled and I don't see any further output. When added without arguments the task is executed but raises an exception instantly because I didn't supply the needed arguments (makes sense). Does anyone see what's the problem here? Thanks in advance. This is the output after supplying arguments: [DEBUG/Beat] SELECT "djcelery_periodictask"."id", [...] FROM "djcelery_periodictask" WHERE "djcelery_periodictask"."enabled" = true ; args=(True,) [DEBUG/Beat] SELECT "djcelery_intervalschedule"."id", [...] FROM "djcelery_intervalschedule" WHERE "djcelery_intervalschedule"."id" = 3 ; args=(3,) [DEBUG/Beat] SELECT (1) AS "a" FROM "djcelery_periodictask" WHERE "djcelery_periodictask"."id" = 3 LIMIT 1; args=(3,) [DEBUG/Beat] UPDATE "djcelery_periodictask" SET "name" = E'<taskname>', "task" = E'<task.module.path>', "interval_id" = 3, "crontab_id" = NULL, "args" = E'[1, False,]', "kwargs" = E'{}', "queue" = NULL, "exchange" = NULL, "routing_key" = NULL, "expires" = NULL, "enabled" = false, "last_run_at" = E'2011-05-25 00:45:23.242387', "total_run_count" = 9, "date_changed" = E'2011-05-25 09:28:06.201148' WHERE "djcelery_periodictask"."id" = 3; args=( u'<periodic-task-name>', u'<task.module.path>',
Tags (comma-separated)
Save Edits
Cancel