Out of memory when retrying tasks
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Celery + RabbitMQ - nothing seems to function and I can't figure out why
celery 3.0.19
rabbitmq 2.8.4
ubuntu 12.10
my config:
CELERY_TIMEZONE = 'UTC'
CELERY_RESULT_BACKEND = 'database'
CELERY_RESULT_DBURI = 'postgresql://postgres:postgres <at> localhost/psi-rt'
CELERY_RESULT_ENGINE_OPTIONS = {"echo": True}
CELERY_TASK_SERIALIZER = 'json'
BROKER_URL = "amqp://rt-crawler:rt-crawler <at> neuromancer/rt-crawler-host"
my celery start script:
import sys
import os
from celery import Celery
import cconfig
from crawler.tasks import rt
sys.path.append(os.path.dirname(os.path.basename(__file__ + "/../")))
celery = Celery('tasks')
celery.config_from_object(cconfig)
the last import I have to do just to register the tasks I believe with celery, they are all marked with the <at> task decorator
So I run this little script with
celery -A ctest.py worker -E --loglevel=debug
this spits out:
[Tasks]
. celery.backend_cleanup
. celery.chain
. celery.chord
. celery.chord_unlock
. celery.chunks
. celery.group
. celery.map
. celery.starmap
. crawler.tasks.rt.dmap
. crawler.tasks.rt.fetchSubmissionContent
. crawler.tasks.rt.fetchSubmissions
. crawler.tasks.rt.getCalaisFacets
. crawler.tasks.rt.getPsiopicFacets
. crawler.tasks.rt.submitToDatabase
[2013-04-22 10:55:02,174: DEBUG/MainProcess] [Worker] Loading modules.
[2013-04-22 10:55:02,214: DEBUG/MainProcess] [Worker] Claiming components.
[2013-04-22 10:55:02,215: DEBUG/MainProcess] [Worker] Building boot step graph.
[2013-04-22 10:55:02,216: DEBUG/MainProcess] [Worker] New boot order: {ev, queues, beat, pool, mediator, autoreloader, timers, state-db, autoscaler, consumer}
[2013-04-22 10:55:02,221: DEBUG/MainProcess] Starting celery.worker.hub.Hub...
[2013-04-22 10:55:02,221: DEBUG/MainProcess] celery.worker.hub.Hub OK!
[2013-04-22 10:55:02,222: DEBUG/MainProcess] Starting celery.concurrency.processes.TaskPool...
[2013-04-22 10:55:02,226: DEBUG/MainProcess] Closed channel #1
[2013-04-22 10:55:02,232: DEBUG/MainProcess] celery.concurrency.processes.TaskPool OK!
[2013-04-22 10:55:02,232: DEBUG/MainProcess] Starting celery.worker.consumer.Consumer...
[2013-04-22 10:55:02,232: WARNING/MainProcess] celery <at> neuromancer ready.
[2013-04-22 10:55:02,233: DEBUG/MainProcess] consumer: Re-establishing connection to the broker...
[2013-04-22 10:55:02,238: DEBUG/MainProcess] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2012 VMware, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'consumer_cancel_notify': True, u'publisher_confirms': True, u'basic.nack': True}, u'platform': u'Erlang/OTP', u'version': u'2.8.4'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
[2013-04-22 10:55:02,238: DEBUG/MainProcess] Open OK!
[2013-04-22 10:55:02,238: INFO/MainProcess] consumer: Connected to amqp://rt-crawler <at> neuromancer:5672/rt-crawler-host.
[2013-04-22 10:55:02,239: DEBUG/MainProcess] using channel_id: 1
[2013-04-22 10:55:02,239: DEBUG/MainProcess] Channel open
[2013-04-22 10:55:02,366: DEBUG/MainProcess] consumer: basic.qos: prefetch_count->32
[2013-04-22 10:55:02,367: DEBUG/MainProcess] using channel_id: 2
[2013-04-22 10:55:02,369: DEBUG/MainProcess] Channel open
[2013-04-22 10:55:02,380: DEBUG/MainProcess] consumer: Ready to accept tasks!
--
ok so far so good I suppose. So in another script, called csend, I have the following, to start a chain of tasks:
<at> task
def dmap(it, callback):
callback = subtask(callback)
return group(callback.clone([arg,]) for arg in it)
res = chain(rt.fetchSubmissions.s(cconfig.RT_USER_AGENT, cconfig.RT_USERNAME, cconfig.RT_PASSWORD, cconfig.RT_SUB),
dmap.s(rt.fetchSubmissionContent.s())
).delay()
all these tasks work on their own. This dmap function I pulled from this helpful stackoverflow: http://stackoverflow.com/questions/13271056/how-to-chain-a-celery-task-that-returns-a-list-into-a-group
I run this script simply as: python csend.py
Now, doing this, I see no action in celery, but I see messages getting added to rabbitmq. Whats weird, is that the messages are added to the virtual host "/" instead of "rt-crawler-host". When I looka t my rabbitmq logs, there is only this when I send the task:
=INFO REPORT==== 22-Apr-2013::11:09:20 ===
accepting AMQP connection <0.15058.0> (127.0.0.1:42221 -> 127.0.0.1:5672)
=WARNING REPORT==== 22-Apr-2013::11:09:20 ===
closing AMQP connection <0.15058.0> (127.0.0.1:42221 -> 127.0.0.1:5672):
connection_closed_abruptly
well, I don't really know what else to do? nothing happens after this point. There is no additional logs or information. I am at a total loss here, so any help would be greatly appreciated, thanks
--v0id
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
[3.0.12] performing list(res.collect()) on chained result
Versions:
-----------------------------------------------------------
celery - 3.0.12 - active
django-celery - 3.0.11 - active
Hello,
Apologies if this is a daft question.
When chaining subtasks, my understanding is that performing collect() on the result object will flatten the results (if a list is required)
my code is as follows:-
<at> task
def add(x, y):
return x + y
<at> task
def tsum(numbers):
return sum(numbers)
<at> task
def mul(x, y):
return x*y
res = chain(add.s(4, 4), mul.s(8), mul.s(10))
# have tried with intermediate=True as well
result = res.apply_async()
I can see that I am getting the result back (i.e. it has result.parent.get().. result.parent.parent.get() etc)
but when I do,
Error
Traceback (most recent call last):
....
File "/home/krone/.virtualenvs/mathspace/local/lib/python2.7/site-packages/celery/result.py", line 153, in collect
for _, R in self.iterdeps(intermediate=intermediate):
File "/home/krone/.virtualenvs/mathspace/local/lib/python2.7/site-packages/celery/result.py", line 169, in iterdeps
stack.extend((node, child) for child in node.children or [])
File "/home/krone/.virtualenvs/mathspace/local/lib/python2.7/site-packages/celery/result.py", line 237, in children
children = self.backend.get_children(self.id)
AttributeError: 'NoneType' object has no attribute 'get_children'
please note I have CELERY_ALWAYS_EAGER=True (for testing purposes) so result is an EagerResult object
I also have TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner', in my settings
I haven't tested it through MQ broker yet, but should it make a difference with respect to collect()
am I missing something?
Cheers
Lu
--
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Best way to spawn new ec2 instances with celery workers in them
List,
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
Twitter: <at> w3af
GPG: 0x93C344F3
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
How to handle MaxRetriesExceeded in chord_unlock
Hello,
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Integration with nd_service_registry for broker HOST/PORT detection..?
We're looking to try to integrate our Celery clients with our home-grown service registry system (described at https://engblog.nextdoor.com, code available at https://github.com/Nextdoor/ndserviceregistry).
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Temporary message 'data' store in Redis or ???...
We have some celery tasks that pass around large chunks of data right now (300-500k). We know that this is both inefficient and explicitly frowned upon in both Celery docs as well as the RabbitMQ performance benchmarks.
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Checking status of all tasks in a flow
Hi all,
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Is it possible to get the running time of task chain?
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to celery-users-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/celery-users?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
RSS Feed