2010-7-19

12:03 asksol
aha, so closing the terminal sends the HUP signal
12:03 asksol
it will also effectively close stdin+stdout, making the restarted celery a daemon :)
12:04 asksol
I have no idea how to fix it so it terminates when you close the terminal window
12:04 asksol
additionaly there was a bug, because the worker processes had the same HUP handler as the main process, so when you close the window, each worker will start a new celeryd :/
12:06 asksol
i guess that's what SIGHUP is for, just seen a lof or programs use it to reload configuration
12:08 asksol
guess it could skip the HUP handler if celeryd is not running as a daemon
12:08 asksol
apache also uses HUP to reload configuration
12:14 rick_h_
asksol: hey, have you seen this error before? http://paste.mitechie.com/show/100/
12:14 rick_h_
I'm going to update the server to 2.0.1 and see if it changes but not seeing it in the changelog
12:14 rick_h_
currently at 2.0
12:15 asksol
no, never
12:15 asksol
maybe ask the sqlalchemy guys, no idea what that is
12:16 rick_h_
k, seems like some bug in sqlalchemy and cleaning up tasks?
12:16 rick_h_
I'm ignoring results so wondering if something is still trying to run cleanup
12:16 asksol
it doesn't seem related to cleaning up tasks
12:16 asksol
it's from retrievedata in /srv/venv/qmail_ve/qmail_app/qmail_app/celery_app/tasks.py
12:17 rick_h_
oh doh
12:17 rick_h_
nvm, mondays
12:45 asksol
finally fixed the problem when closing the terminal window running celeryd
12:46 asksol
12:46 asksol
13:08 matclayton
asksol: you seen this 'Missing hostname for AMQP connection.' before, despite the fact celeryd is connected....
13:09 matclayton
celeryd and celeryev appear to work fine, but views are crashing out... trying to upgrade 1.0.3 to 2.0.1
13:10 asksol
matclayton: add os.environ["CELERY_LOADER"] = "django" to your .wsgi file
13:10 matclayton
got that there
13:11 matclayton
issue is in manage.py runserver
13:11 asksol
hmm, that should work
13:11 asksol
and you have djcelery in INSTALLED_APPS?
13:11 matclayton
yes
13:12 asksol
in the views, try dumping out celery.loaders.setup_loader()
13:14 asksol
13:16 asksol
demoapp/views.py and runserver works there
13:16 matclayton
hmmm we have some strange settings loaders
13:17 matclayton
could be that, but I doubt it
13:17 asksol
try adding import djcelery directly in settings.py
13:18 matclayton
ok, that also removed the No celeryconfig.py msg
13:18 matclayton
testing it now
13:20 matclayton
appears to have fixed it, I also added the database backend (changed from amqp)
13:20 matclayton
just going to see which it was
13:21 matclayton
yeah the import fixed it
13:22 asksol
nice. I added djcelery.setup_loader() so it seems more explicit
13:23 matclayton
cool
13:23 asksol
seems django is lazily loading the models now then
13:24 matclayton
might take celerymon out for a spin now
13:25 matclayton
2.0.1 seems ok at first glance
13:25 matclayton
as in its all working
13:31 matclayton
interesting celerymon is 404ing, but least the server fires up
13:54 asksol
celerymon is *very* experimental
13:55 asksol
I don't have the front end coders to finish it yet
13:55 asksol
[No longer have to type PYTHONPATH=. to use celeryconfig in current dir] http://github.com/ask/celery/commit/c069f7d6a8a...
14:11 matclayton
ok cool, was just playing with it
14:14 asksol
btw
14:14 asksol
there is no index
14:14 asksol
see the source code for list of urls
14:14 asksol
14:20 matclayton
ah ok :)
16:48 vishalrana
Hi, How can I run periodic task every minute between 9 to 10:30, it works for 9 to 10 or 11!
16:50 asksol
crontab(hour="9,10", minute="0,30") ?
16:54 vishalrana
ask: Let me try this, thanks
17:03 sebleier
asksol, sorry to bother you, but is there a way in 2.0.X to inspect scheduled tasks?
17:03 sebleier
I think the doc here are out of date -- http://ask.github.com/celery/userguide/workers....
17:03 asksol
that is for the master branch
17:04 sebleier
ahh, my mistake
17:04 asksol
oh, it's on celeryq.org as well
17:04 asksol
the command is broadcast("dump_schedule", reply=True)
17:04 asksol
celery.task.control.broadcast
17:05 sebleier
asksol, thank you :)
17:05 asksol
but far more useful in the master branch, returns a lot better info
17:05 vishalrana
@ask: I think crontab(hour="9,10", minute="0,30") will execute at 9, 9:30, 10 and 10:30
17:10 claymation
for periodic tasks, is anything required other than decorating tasks in tasks.py with @periodic_task, running celerybeat, and running celeryd?
17:58 asksol
claymation: not really
17:59 claymation
I had forgotten to register my task :-/
17:59 asksol
run celerybeat with --loglevel=DEBUG for more info
17:59 claymation
thanks, though
17:59 claymation
<-- n00b
20:23 peplin
hello - just getting started with celery in django and having some trouble with using ghettoq
20:24 peplin
everything works fine with rabbitmq, but if i drop the BROKER_* settings and use CARROT_BACKEND = 'ghettoq.taproot.Database' instead, celery complains of a missing AMQP hostname
20:34 savid
Hi all, I'm having a really difficult time debugging this issue: http://dpaste.com/219825/ I can't figure out from that traceback what object the __init__() method is being called on
21:58 asksol
savid: the exception is not pickleable
21:59 asksol
21:59 savid
asksol, interresting
22:00 savid
asksol, would be nice to at least see the exception info ... does celery at least store the exception info somewhere?
22:01 savid
ie, somewhere in plain-text?
22:01 asksol
what version is this?
22:03 asksol
thing is, it's an imroper exception. it tries to fix them up, but there are probably still cases where it can't
22:03 asksol
2.0.0 does fix a lot more of them though
22:04 brett_h
does anyone use celeryd-multi?
22:10 peplin
i can't seem to get a celeryd worker started with ghettoq + sqlite
22:11 peplin
enqueing tasks is working now
22:13 peplin
22:19 savid
asksol, looks like celery 1.0.2
22:21 savid
asksol, any idea if there is any backward-incompatibility to from 1.0.2 to 2.0?