django-celery-model icon indicating copy to clipboard operation
django-celery-model copied to clipboard

Using with celery primatives?

Open jmerkow opened this issue 8 years ago • 3 comments

Does this package work with celery primatives, i.e. chords, groups, etc.?

P.S. Btw, great package.

jmerkow avatar Feb 10 '17 18:02 jmerkow

Nope, not yet. Because the model.apply_async function fires of the task directly instead of returning a task signature that could be used with those primitives.

mback2k avatar Feb 11 '17 22:02 mback2k

I would be interested in this, let me know if I can help.

jmerkow avatar Feb 13 '17 23:02 jmerkow

I just happened to see this:

        result = group(signatures).apply_async()
        for child in result.children:
            ModelTaskMeta.objects.create(
                task_id=child.id,
                content_object=self,
            )

Easy way to relate groups if you have a reference to the instance you want to add

thenewguy avatar Jul 13 '20 20:07 thenewguy