Questions tagged [Celery] (114)

1
answer

To run celery on heroku?

Hello! Run django project on heroku. Bolted to django celery. Deploy the project from the Dockerfile with the following command:heroku container:push web --app=project_name heroku container:release web --app=project_name How do I start celery?
Josefa58 asked March 29th 20 at 21:29
1
answer

How to assign a task Celery on the field model?

There is a Post model with a field next_run. Created test 10 posts. How to start the celery task in the time specified in next_run each of the model objects?
Wilmer31 asked March 29th 20 at 19:48
1
answer

Like to ask Celery periodic tasks declarative dictionary in the app.conf = {...}?

It works:# tasks.py: import celery app = celery.Celery('tasks', broker='redis://127.0.0.1:6379') @app.task def show(arg): print(arg) app.add_periodic_task(5, show.s(42), name='task-name') And it's not working:# tasks.py: import celery app = celery.Celery('tasks', broker='redis://127.0.0.1:6379') @app.task def show(arg)...
Lolita_Nol asked March 29th 20 at 19:42
2
answers

How to know the size of the tasks in the queue and be executed?

I would like to do a little blood not to tie the monitoring tool, and quick look. Ie, in the instance quite a lot of memory is consumed. I would like to know, is there a way to calculate what task and how much memory it consumes at the moment? Through sample_mem, memdump show how much the task will take, when it will work, ...
Jordon asked March 27th 20 at 13:08
1
answer

As poimayu in Django model change in сelery?

stack: Django django-channels celery Forces small сhannels implemented the websocket server, which in podkluchenie is this: post_save.connect(self.on_new_order, sender=Order) All in all works well if someone changes the model, the event flies in the websocket and everyone is happy. But, sometimes run some abstract task in ...
Nichole asked March 25th 20 at 13:15
2
answers

How to configure celery to different queues for different Django projects on one server?

So has VDS. On it are two different Django with his virtual environment. In different places. Include your Celery. Installed on your system (so to speak common at all) even for RabbitMQ and run the whole thing Supervisor of the Ohm. In Django each have their different tasks (task), but one of them in each Django has the s...
Palma_Prosacco asked March 25th 20 at 13:14
1
answer

Asynchronous POST and GET requests in python?

The task is to make multiple requests (6-7) on different servers. Now all the requests are in the queue. Each request takes 5 to 30 seconds. Is it possible to do in DJANGO 2.2 so that the queries went at the same time (asynchronously), then get the result and "processed" it. Now I use Celery, but I don't know how to wait ...
Reid asked March 24th 20 at 14:30
0
answer

Django celery doesn't handle background task?

Hi all. There is a project on django and celery 2.2 4.2.2 After check-in the background send an email to activate your account. Celery to see Tusk, writes, "received task", but the function itself does not perform. # view class SignUpFormView(FormView): ..... def form_valid(self, form): current_site = get_current_site(se...
Trevion_Smitham asked March 23rd 20 at 18:31
0
answer

Celery beat does not start after you change the date on the computer?

After changing the date on your computer Celery stopped running beat, LocalTime -> 2019-05-17 13:50:45 Configuration -> . broker -> amqp://guest:**@localhost:5672// . loader -> celery.loaders.app.AppLoader . scheduler -> celery.beat.PersistentScheduler . db -> celerybeat-schedule . logfile -> [stde...
Meagan_Schmidt asked March 21st 20 at 12:12
1
answer

Why an error occurs when the execution of a task in Celery (django)?

Django + Celery + redis There are two errors When you run Celery [2019-05-07 18:22:53,012: WARNING/MainProcess] /home/django/venv/lib/python3.5/site-packages/celery/app/control.py:54: DuplicateNodenameWarning: Received multiple replies from node name: celery@user0123. Please make sure you give each node a unique nodename u...
Kennedy_Hessel94 asked March 20th 20 at 12:11