in a schedueled task i add some files to a database, the i want to trigger a lengthy analysis of those files in another task, because sometimes this task will be called in a scheduled manner also
mher has quit
zmsmith joined the channel
ionelmc
HexKey: you have to model you processing so you don't wait for results of tasks (eg: .get() ) in other tasks
but if you really need to you would need a different worker pool + queue for each task
that really complicates stuff - don't do it like that
HexKey
hmmm
the processes are totally disconnected in time, as long as the stuff is in the databse is does matter when the called task within the database persist task is executed
i dont think there is a problem with having to wait for things
ionelmc
ofcourse not
having a deadlock is a problem :)
HexKey
as long as celery allows i think i should be safe just calling the sub-task after i persist into the databse
aimatt
anyway, in regards to my workers listening to the celery queue no matter what, I did this:
guys how to define a periodic task but that accept parameter
from a django view for ex, call and pass to it parameters
the_rat joined the channel
aimatt
b_52globe: not sure you can
jlucci has quit
nvm you can
just define it like a normal task
then in admin under admin/djcelery/periodictask/xx/
theres an arguments accordion
json encoded
b_52globe
aimatt, even i want the task to be launched in one week later
ok checking admin
aimatt
b_52globe: what's the issue? define the task in tasks.py and go to admin to add it
the_rat has quit
the_rat joined the channel
b_52globe
aimatt, yeap thanks
aimatt
np
b_52globe: a tip: when you import a task in another module, I recommend using the full import path as it determines the task name
b_52globe
aimatt, hm ok thanks
the_rat has quit
zmsmith has quit
aimatt
celeryd is disregarding -Q
celeryd_detach and celeryd_multi
davidcramer
asksol i want to add queue exclusions to celery workers, if you have thoughts on it let me know and ill send up a pull req (something like -X or something, similar to -Q)
sandywalsh has quit
zmsmith joined the channel
Ergo^ has quit
aimatt
anyone have any idea how to prevent celery from pulling tasks out of the default "celery" queue?
jpadilla has quit
jpadilla joined the channel
sandywalsh joined the channel
gtaylor is now known as gtaylor_afk
cmplxen has quit
ustunozgur joined the channel
Coalpaw has quit
ustunozgur has quit
jpadilla has quit
jdunck joined the channel
jpadilla joined the channel
italorossi has quit
sylvinus has quit
alekibango has quit
b_52globe joined the channel
alekibango joined the channel
cofeineSunshine
'CELERY_ALWAYS_EAGER': True,
MVXA
i know the celery monitor in the django is deprecated but it's convenient for basic monitoring, but the admin shows my worker as offline even though the last heartbeat shown in the model detail view is a few seconds old