2010-3-1
| 03:59 | EvilPacket | Is there some undocumented magic to unregister periodic tasks? I am just going through the getting started material and I registered a period task, but when I unregister it, it well..keeps on executing (despite it not being in the registry anymore) |
| 09:42 | Nikolay | Hi, I have used two Q (hi priority and low priority) on one host (via separate settings.py files), the question is -- can I use one celerybeat? |
| 09:43 | Nikolay | if yes, then how should look the celeribeat's settings.py? |
| 10:52 | asksol | as long as they use the same broker, sure |
| 10:53 | asksol | all celerybeat is doing is sending messages |
| 10:53 | asksol | so with all the periodic tasks installed, it sends messages when the tasks are scheduled |
| 10:57 | asksol | CELERY_QUEUES does not apply to celerybeat (except it provides the default queue settings for tasks when they're sent) |
| 10:57 | asksol | e.g. CELERY_DEFAULT_QUEUE |
| 10:57 | asksol | nikolay: |
| 11:21 | trepca | hello |
| 11:21 | trepca | i have a problem serializing django models |
| 11:21 | trepca | if I do model.save, task.delay(model) |
| 11:21 | trepca | and do another model.save in the task, it will report integrity error because it would use insert instead of update |
| 11:25 | padt | trepca: I think you're supposed to pass around the primary key, so the task can get a fresh instance of the model object |
| 11:26 | padt | I seem to remember reading that in th docs but can't find it now |
| 11:27 | padt | |
| 11:27 | padt | inline search for "gotcha" |
| 11:42 | trepca | padt: great, thanks! |
| 13:45 | jespern | if I have a task I want to execute on N workers (not just 1), how do I do that? |
| 13:48 | padt | same task on a bunch of workers is done with fanout I think |
| 13:48 | jespern | I tried a fanout, but the task just gets picked up one one celeryd, seems like it round robins |
| 13:49 | padt | Mkay. Then you'll have to check with asksol I guess |
| 13:50 | jespern | I hate bothering him all the time ;) |
| 13:52 | jespern | asksol: do you know how you can do one-to-many in celery then? |
| 14:06 | jespern | seems that binding 2 queues to the same exchange does the trick. |
| 14:14 | asksol | yeah, in topic exchanges that does the trick |
| 14:14 | asksol | two queues listening to the same routing key on the same exchange == fanout |
| 14:15 | jespern | so if you're using topic exchanges for that, it's the same, just a shortcut? |
| 14:15 | asksol | not sure what the plan is |
| 14:15 | asksol | it's a side effect I think :) |
| 14:16 | asksol | |
| 16:53 | stovenator | ask_sol - I think being able to specify a queue is probably the correct approach |
| 16:55 | stovenator | I have a couple other small patches I need to send you, but I'm working from 1.0.0 and not from the git master branch |
| 16:55 | stovenator | would you prefer I send them as patches, or check them in directly? |