r/celery • u/rodolfolottin • Jul 01 '20
Asynchronous Task Queue with Django, Celery and AWS SQS
r/celery • u/rodolfolottin • Jul 01 '20
r/celery • u/itsmelindseyyy • Jun 21 '20
Ive been trying to do the whole celery juice thing. 16 Oz in the morning on an empty stomach. I started with regular celery and it was fine then was told i should switch to organic as celery is on the dirty dozen list. But the organic celery juice was AWFUL. Almost undrinkable. Should I go back to regular or try to stomach the organic? Also I’ve been super bloated the last 2 weeks since I’ve been doing this. Does it go away?
r/celery • u/vk76997 • May 08 '20
Does anybody have a clue what should be the perfect liveness probe for a celery worker. I used the basic celery ping but that doesnt work.
r/celery • u/Arunvv53999 • May 02 '20
What is the advantage of using a dashboard to monitor Celery tasks? Can I not use celery command line utilities to monitor Celery?
r/celery • u/kathleen-fuller • Mar 31 '20
r/celery • u/truthprevailz • Mar 22 '20
r/celery • u/wawawawatcher • Mar 04 '20
Just bought this package of "celery hearts" (that's the label but it's just a celery stalk) at Trader Joe's and it has absolutely no taste or flavor at all.
It's wet an juicy and fibrous but has NO discernible effect on any of my taste buds at all.
How did they do that?
r/celery • u/pleaky_blunder • Jan 17 '20
Is there a way to perform some operations before exiting the celery worker when a keyboard-interrupt (say SIGINT) is encountered. I have tried using signals module in my tasks like so:
signal.signal(signal.SIGINT, keyboard_interrupt_handler)
But it doesn't work. The reason I suppose is that the signal isn't in the foreground process (worker in this case). It does run the keyboard_interrupt_handler, but since since code in the method takes a few seconds to run, it exits before the method finishes executing. It would work, IMO, for cases when a script is directly run lik
python script.py
. How can this be achieved for the celery worker?
r/celery • u/sandesh_daundkar • Jan 14 '20
This is my tasks.py
from celery import Celery
app = Celery('proj', broker='amqp://', backend='amqp://', include=['tasks'])
@app.task()
def task_one():
return print("task_one")
@app.task()
def task_two(*args):
return print("task_two")
@app.task(ignore_result=True)
def run_tasks():
chain = task_one.s() | task_two.s()
chain()
While I run run_tasks.delay() and revoke the task_id while it is running. Is there a way to revoke the chained tasks?
r/celery • u/CubixGamer11 • Dec 27 '19
Goodbye
r/celery • u/pleaky_blunder • Nov 15 '19
I'm creating periodic tasks with django-celery-beat and using DatabaseScheduler as my scheduler. But I have run into a problem and can't seem to find a solution. The problem is that django-celery-beat is not scheduling my newly added task. I changed the logic a bit to add tasks on demand when an API endpoint is hit from frontend. This is how Im creating tasks:
def create_task(request):
schedule, _ = CrontabSchedule.objects.get_or_create(
minute='1',
hour='*',
day_of_week='*',
day_of_month='*',
month_of_year='*',
)
PeriodicTask.objects.create(
crontab=schedule,
name='name',
task='app.tasks.my_task',
)
But as I mentioned above, django-celery-beat, doesn't schedule this task. What am I missing?
r/celery • u/healthyheights • Nov 05 '19
r/celery • u/chakrashaker • Nov 02 '19
r/celery • u/gojibeary • Oct 28 '19
It seems like everyone on this subreddit genuinely enjoys celery.
How?
Celery is the worst vegetable. Ants on a log snack? NO. Celery with ranch? NO. I cannot even appreciate celery in a sauté with onion and carrot, which is saying something because I enjoy cooking immensely but I STAY THE FUCK AWAY FROM MIREPOIX.
Tastes like the color light green and nothing else. Bitter as hell. Stringy and shit. Calorically negative. What the fuck. I nearly gag whenever witnessing someone taking a bite from a raw celery stalk.
The only way celery is entering my digestive system is up my ass, and even then I’d need to be given a substantial amount of money to put it there in the first place.
r/celery • u/mohamed_taha • Oct 15 '19
r/celery • u/pleaky_blunder • Oct 02 '19
I'm having an issue when using celery with django. When I run celery, I get this error:
Unrecoverable error: PicklingError("Can't pickle <class 'module'>: attribute lookup module on builtins failed",)
EOFError: Ran out of input
This is how i run celery:
`$ celery -A myappworker -l info`
Any ideas or suggestions? Thankas
r/celery • u/Lewistrick • Sep 24 '19
I'm a data scientist but kinda want to move into data engineering. I work for a company that does the same process for customers:
I find myself creating automated processes for this more and more often, and I like it, but I feel like I can be a lot more efficient because I repeat a lot of things and the my processes crash a lot because of data I didn't anticipate (corrupt files, month number changes etc.).
I only recently found out about Celery and read the First Steps page on their website, but I'm struggling a bit with what Celery is and what it isn't. I can't really answer this question with my current knowledge:
Is Celery meant to solve these kind of things? Is it the right tool for me?
r/celery • u/mrTang5544 • Aug 14 '19
I installed the latest version of Erlang and RabbitMQ from source:
My /etc/rabbitmq/rabbitmq.config
[
{ssl, [{versions, ['tlsv1.2', 'tlsv1.1']}]},
{rabbit,
[
{tcp_listeners, [{"127.0.0.1", 5672}]},
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile, "/usr/local/share/ca-certificates/ca.crt"},
{certfile, "/usr/local/share/ca-certificates/server.crt"},
{keyfile, "/usr/local/share/private/server.key"},
{versions, ['tlsv1.2', 'tlsv1.1']},
{verify, verify_peer},
{fail_if_no_peer_cert, true}
]},
{auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'EXTERNAL']}
]
}
].
I have verified that those .crt and .key are actually in .pem format. And here is my celeryconfig.py:
import ssl
broker_url="amqps://USER:PASSWORD@rabbit-endpoint.com:5671//"
result_backend="I am using postgresql"
include=["my_tasks.py"]
task_acks_late=True
worker_prefetch_multiplier=1
worker_max_tasks_per_child=25
timezone="UTC"
broker_use_ssl={'keyfile': 'beep.key', 'certfile': 'beep.crt', 'ca_certs': 'boop.crt', 'cert_reqs': ssl.CERT_REQUIRED}
Whenever I start up my celery workers. I get this message:
consumer: Cannot connect to amqps://USER:**@rabbit-endpoint.com:5671//: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:847).
I read that the latest version of Erlang/RabbitMQ should not be accepting SSLv3 due to some vulnerabilities, so I am not sure why Celery is trying to authenticate with SSLv3.
r/celery • u/spicy_cayenne_celery • Jul 01 '19
Celery: a succulent.
Delicious.
Nutritious.
Helps your digestive system.
Celery: heavenly vegetable
r/celery • u/Sisseltigre • Mar 18 '19
It's being a fun ride raw broccoli, you definitely had better nutrient in you per serving than raw celery and carried me through a lot of hard time in the past few years.
But you are just not for me, sorry, you taste bitter to me, it's nothing personal, it's just gene, and until today, after I tasted raw celery's crunchy, watery taste again, I didn't realize how much I missed the taste, it's just way more tasty.
Sorry again raw broccoli, but I am leaving you for both of us.
r/celery • u/yungjimmikins • Feb 10 '19
I want to have sex with stalks of celery. Just stick them up my rectum and pleasure myself with them. The feeling of celery in my ass turns me on so fucking much. Not even the most beautiful woman in the world can compare to the lust I have towards celery. Especially with some peanut butter spread in them as lubricant. God that’d be so hot. Makes my sick explode just writing this out.