Comments (8)
Python: 3.8
celery: 5.3.4 (emerald-rush)
d-c-r: 2.4.0
Please let me know what else you need.
from django-celery-results.
Hi @sdrabblescripta,
Could you provide environment/OS configuration to help replicate the issue you are facing?
from django-celery-results.
@50-Course any update?
from django-celery-results.
Hi @sdrabblescripta,
Unfortunately no. It's been a stretched week for me. However, I should be able to take a look at this over the weekend.
from django-celery-results.
No worries, any attention you can give the matter would be great!
from django-celery-results.
@sdrabblescripta, Could you please provide a simplified information about your architecture? I would like to clarify if:
- You do have two separate Django projects with their own Celery workers (queues A and B) and and a single shared RabbitMQ instance
- Or could it be a single django application instance, with two celery clusters (A, B) and a single shared MQ instance?
from django-celery-results.
That aside, chained tasks run sequentially, respecting the order of arrangement. To run tasks in parrallel, you would have to explictly call the group
function, which returns a GroupResult
instance that you may call your .get()
on.
The difference here is in apply_async
instead of the conventional wait()
method.
from celery import group
# Assuming you have celery_worker_B and celery_worker_C configured
your_task_group = group(
your_task.s(*args, **kwargs).set(queue='B'),
your_task.s(*args, **kwargs).set(queue='C'),
...
)
# Apply the group of tasks asynchronously
result_group = your_task_group.apply_async()
Again if your have tried the above and still won't work out, please provide the above requirements to help diagnose the issue.
You may track the progress here upon providing the above: https://github.com/50-Course/dj-celery-results-multiple-worker-failure
from django-celery-results.
Hi @50-Course ,
I have two apps, A and B - they share some code but models are mostly NOT shared. There's a single A with its own celery worker, multiple Bs each with their own celery worker, and a single MQ.
A has to start a task in all B workers, which is why I thought group couldn't be used - the task is not importable in A, so I use send_task. If this is in error please let me know and I'll try the group approach.
from django-celery-results.
Related Issues (20)
- Is there a way to use shadow_name as the result task name?
- Clean old results from Database
- `backend_cleanup` fails when TaskResult is referenced in a model HOT 1
- Can we use django celery results for remote workers?
- Unable to install django_celery_results with Django version 4.2 HOT 1
- Documentation and changelog are out of date HOT 1
- ModuleNotFoundError: No module named 'django_celery_results'
- 'result' cannot be specified for MyTaskResult model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class MyTaskResultAdmin. HOT 2
- `post_save` signal of TaskResult doesn't trigger HOT 2
- Display the seconds of the datetime fields in the django admin
- Django celery results in combination with dango tenants intermittent error of table not found HOT 2
- Task name, args, and kwargs are not being saved HOT 2
- Building docs fails with Sphinx 7.2 and SOURCE_DATE_EPOCH environment variable
- CELERY_RESULT_EXPIRES does not prevent backend.cleanup task
- date_done does not reflect the time the *task* was completed, but the time the *task result* is updated HOT 1
- Django 5 support HOT 4
- Getting exception "select_for_update cannot be used outside of a transaction" HOT 2
- persistance for revoked tasks ? HOT 1
- why task name and worker column is always empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-celery-results.