2010-2-1

12:01 Guest6103
Hi anyone here?
12:02 Guest6103
I am looking for a little help with Celery
12:05 padt
Guest6103: what's the problem? Easier to get an answer if you ask a question :)
12:17 Guest6103
I am trying to use the periodictask. Is there anyway to debug this in pydev. Also it does not seem to update my task. Do i need to register it every time I make a change?
12:19 asksol
you need to restart the workers when you do a change
12:21 asksol
if you want to debug your tasks in particular, you should just try them locally
12:21 asksol
like MyPeriodicTask.apply()
12:25 Guest6103
Thanks asksol. Worker is not be picking up the task now. I am a little new to python/ django and celery so a bit of a step curve at the moement
12:26 asksol
I'd recommend upgrading to celery-1.0.0-pre2
12:26 Guest6103
ok, can i do that via easy-install or do i need to take source?
12:26 asksol
there the periodic task is another service, "python manage.py celerybeat", if you only run one worker you can run it inside celeryd with "python manage.py celeryd --beat"
12:28 asksol
12:28 Guest6103
thanks
12:28 asksol
need to install from source, or git
12:28 asksol
the new documentation is at http://ask.github.com/celery
12:29 asksol
you can see the tasks registered at startup by using --loglevel=INFO
12:29 asksol
also, you don't have to register the tasks manually anymore
12:29 asksol
forget everything from the old documentation, and read the new one
14:46 avisual
consumers
14:46 avisual
Listing queues ...
14:46 avisual
clicks 15 0
14:46 avisual
celery 0 1
14:46 avisual
celeryctl_john-laptop-mint 0 1
14:46 avisual
I don't seem to have any workers in the clicks is this correct
15:00 asksol
padt: I merged your latest doc changes
15:00 asksol
they're built on ask.github.com/celery noiw
15:04 asksol
avisual: yeah, there's no consumers
15:05 asksol
there's 15 messages waiting for someone to consume them
15:10 padt
asksol: cool. Is there any more doc stuff that needs review? I do enjoy being a pedantic bastard
15:11 asksol
all of it needs review :)
15:14 padt
heh.
15:14 padt
I'll see if I'll look a bit more this evening then
15:15 padt
now I have to go to a visning
15:15 asksol
buying an apartment?
15:16 padt
yeah
15:17 padt
anyway, talk to you later
15:20 asksol
nice! good luck then!
15:34 avisual
:Asksol you said when
15:34 avisual
to debug run MYtask.apply
15:34 avisual
can this be done in pydev or do i need to run from command line
15:34 asksol
pydev?
15:34 asksol
what's that?
15:34 asksol
some IDE?
15:35 avisual
eclipse extension allows you to run python in eclipse
15:35 asksol
ah
15:35 asksol
can you run django stuff in there?
15:35 avisual
yes
15:35 asksol
then it should be fine
15:36 asksol
run it in the django environment (that is if you're using celery with django, i just assumed since you mentioned it earlier)
15:36 avisual
yes thanks will git it a shot
15:36 avisual
give. I have a new keyboard and big fingers today :(
15:37 asksol
hehe, I know what you mean
15:37 asksol
I have three spelling consistency modes, IRC, written and spoken
15:38 avisual
LOL
15:40 asksol
celery master still has 94% coverage. nice
15:40 avisual
Asksol: what celeryconfig. trying to run through IDE i get. No module named celeryconfig
15:41 asksol
that means the django environment has not been set up
15:41 asksol
so either you have some sort of mechanism for that in the ide, or you have to set it up manually
15:41 asksol
e.g: from django.core.management import setup_environ; import settings; setup_environ(settings)
15:42 asksol
15:43 asksol
no, that was wrong
15:43 avisual
I have django working inside eclipse. Just trying to get a debuger working for a task
15:43 asksol
15:43 avisual
ahh ok
15:43 asksol
that one should help getting manage.py shell working in pydev
15:45 asksol
and it seems to be helpful in general actually
15:47 avisual
Thanks you have been so helpful today. switching from Java to Python and changing OS from windows to linux is turning out to be quiet intresting.
15:47 asksol
hehe
15:47 asksol
you won't regret it at least
17:10 harel
Hi. Is anyone here using latest celery from git as opposed to the 0.8.3 version on python.org? I'm after celery.messaging.establish_connection which doesn't appear to be in 0.8.3 and was hoping someone has some feedback regarding using the latest version in production environment.
17:10 harel
thanks
17:28 daniel432n2k
hey, am trying to get celery setup and running.. was wondering if someone could guide me though the config .. was following the tutorial but ran into TypeError: argument of type 'NoneType' is not iterable
17:48 daniel432n2k
am now getting AMQP Listener: Connection Error: (61, 'Connection refused'
17:48 daniel432n2k
??
17:49 daniel432n2k
connection settings http://dpaste.com/153365/
17:51 daniel432n2k
setting up rabbit .. http://dpaste.com/153367/
18:10 daniel432n2k
anyone??
20:24 asksol
harel_: we're using 1.0.0-pre2 in production
20:24 asksol
would be nice to get others to test it