2010-2-23

00:15 heedly
celery just sits for me.. doesn't take any of the tasks out of the queue
00:15 heedly
any suggestions?
00:22 otherjacob
what happens when you run celeryd
00:28 otherjacob
heedly^
00:40 heedly
otherjacob: it runs mmy periodic jobs, but the Tasks are never ran
00:41 otherjacob
can the box you're running celeryd talk to your broker outside of celery?
00:45 heedly
ya
00:50 otherjacob
hmpth
06:22 tim
Hi, I'm just trying out celery for the first time with Django and Rabbit and I'm having a problem with the Django example from here http://ask.github.com/celery/getting-started/fi...
06:23 tim
I can complete the first couple of sections - Configuring Django and Running the Celery worker server, but when I try the Defining and Executing Tasks section I hit some errors.
06:24 tim
Basically, I've created a tasks.py in clifton.fetcher, when I use the python interactive command line and type from clifton.fetcher import tasks...
06:24 tim
I get the following error ImportError: No module named celeryconfig
06:25 tim
I'm guessing this is because I'm not properly referencing the settings.py? Any suggestions on where I'm going wrong or what I should import first would be really appreciated. Thanks!
06:27 stovenator
make sure to run 'PYTHONPATH="." python'
06:27 stovenator
when you start the interpreter
06:27 tim
OK, thanks - I'll try that
06:28 stovenator
otherwise it doesn't know where to find the file celeryconfig.py
06:31 tim
Running python manage.py shell has got me past the import error - I think I'm getting the settings from my settings.py
06:31 tim
Thanks for the help.
09:28 jonnygo
hello - just discovered celery this morning - installing... very excited :)
09:29 jonnygo
i'm porting a GAE app back to "normal python"/Django
09:29 jonnygo
my need is the Task Queue feature of GAE and its "deferred library"
09:31 jonnygo
is rabbitMQ _mandatory_ ?
09:33 padt
jonnygo: no. There are a few others you can use
09:34 jonnygo
this is what first pages of doc seems to say, yes
09:34 jonnygo
my need is simple
09:34 jonnygo
i think storing tasks in DB is enough
09:34 jonnygo
CELERY_BACKEND = "database" means this ?
09:34 padt
jonnygo: yeah. I guess you found the faq? http://celeryproject.org/docs/faq.html :)
09:35 padt
09:35 jonnygo
thx for the RTFM link :) I must confess I didn't get it yet :) Will read this - sorry for the noise
09:35 padt
first code snippet there
09:35 padt
no problem
09:38 padt
actually, I misunderstood. celery_backend is the setting for storing the info about tasks. this is what you want http://ask.github.com/celery/tutorials/otherque...
09:53 asksol
jonnygo: CELERY_BACKEND is for storing results
09:53 asksol
ah
09:54 asksol
padt to the rescue
09:54 jonnygo
asksol: this is what I saw - and lead me to this channel
09:54 jonnygo
in the meanwhile I discovered the other-queues page :)
09:54 jonnygo
just wondering why I need a carrot now :)
09:55 asksol
it's the messaging library
09:57 jonnygo
replacing rabbitmq ?
09:57 jonnygo
(sort of)
09:57 padt
asksol: perhaps it's time to add a "what's the realtion between carrot and celery" question to the faq? Also, it would be nice to format the faq with the index of questions at the top
09:57 padt
jonnygo: carrot talks to rabbitmq
09:57 padt
or any amqp server I think
09:58 jonnygo
so I still need rabbitmq :)
09:58 asksol
no, carrot is an abstraction over amqplib
09:58 jonnygo
my initial question was to drop it :)
09:58 jonnygo needs to read more documentation...
09:58 jonnygo is lost is all theses concepts :)
09:59 asksol
carrot supports messaging using amqplib/pika, stomp, redis and database
10:00 padt
jonnygo: to be fair, there is a lot of concepts :)
10:00 padt
so you're not the first
10:00 asksol
so it's a library to abstract away the AMQP parts, so we have freedom to use something else. like you using database
10:01 jonnygo
i'm building my first prototype following on "natural" documentation (so using rabbitmq)
10:01 jonnygo
i think it's overkill for my needs - but i _might_ understand it this way :)
10:02 jonnygo
(i need to delay an XML download+parse tasks)
10:02 asksol
hehe
10:02 asksol
the goal is that you shouldn't have to know that much about it until you need it though
10:02 asksol
so maybe I failed ;(
10:03 jonnygo
don't worry - i'm a bit dull :)
10:06 asksol
heedly: what platform?
15:27 pingwin
hi, I'm looking at using celery, but I would like to verify if it fits my use case. I need something on the backend that will perform HTTP requests and reply those requests if it fails and / or report back that something (perhaps unrecoverable) occurred.
15:27 pingwin
if not easily (and I mean very easily) I'll just make something from scratch really fast)
15:33 asksol
should fit well for that description
15:33 asksol
not sure what you mean by "reply those requests"
15:35 asksol
if set settings.CELERY_SEND_TASK_ERROR_EMAILS = True, celeryd will send e-mails to the ADMINS about failed tasks
15:35 asksol
if you set(*
15:35 asksol
a failed task is simply a task that raises an exception
15:38 padt
I'm guessing that report back means the result of the request
15:38 padt
which could be None if it failed. Or an exception
15:38 padt
or whatever the request returned
15:39 pingwin
would celery be able to reschedule the task if it failed? I suppose that could be the coder's onus to ensure it's rescheduled depending on the error correct
15:40 asksol
yes, there's Task.retry
15:40 pingwin
k
15:40 asksol
15:40 pingwin
and I need to setup rabbitMP in order to use celery? Or some other thing like that
15:41 asksol
rabbitmq, redis or any of the databases supported by Django
15:41 asksol
15:42 pingwin
mysql would work then right?
15:42 asksol
however, rabbitmq is definitely recommended for serious use
15:42 asksol
yeah mysql works
15:42 pingwin
ehh this isn't needed to be huge, just need it done fast... I can worry about scaling later
15:42 asksol
then you use rabbitmq later
15:43 asksol
you can just drop it in at any stage (have to migrate messages though), so no worry
15:43 pingwin
k, then I'm having trouble trying to figure out how to configure celeryd to run without it... I get AMQP listener connection error's
15:43 asksol
did you read the otherqueues tutorial?
15:44 pingwin
no
15:44 pingwin
am doing now
15:45 asksol
are you using this with a django project?
15:46 pingwin
yes
15:46 asksol
ok then
15:46 pingwin
have it running it loooks like
15:53 pingwin
so if I wanted to have a task triggers (say a http API to be hit) when objects are created / modified should I create the task in the signal handler or in save() / delete() ?
15:54 pingwin
what's you guys opinion
15:55 asksol
signal handler always for save and delete
15:56 asksol
this is because if you delete more than one object, any overridden save method won't be called (afair)
15:56 asksol
or I think that was the issue, padt: do you remember what the issue was?
15:57 padt
soemthing like that.. I'll poke around the django bts for my bug
Page 1 of 2   Next →(179 total)