django-rq icon indicating copy to clipboard operation
django-rq copied to clipboard

Any example on how to use this on a django-graphene project?

Open Instrumedley opened this issue 3 years ago • 1 comments

I'm using GraphQL with django with the help of graphene

I also posted this question in graphene's github but since the project seems quite inactive by now, I'd thought maybe I'd have some lucky asking here to.

Anyone has any example on how to apply a job background to a mutation

I'd think it would be something like this: @job('low', timeout=3600) def mutate(cls, root, info, **kwargs):

but that doesn't seem to do anything.

Apologies in advance, if this is not the proper place to ask but at this point I'm counting on luck on someone here having that experience and succeeding (also there's no place for discussion)

Instrumedley avatar Feb 10 '22 12:02 Instrumedley

You'll need to have mutations and jobs defined separately. And then from mutation you can start a background job.

wowkin2 avatar Feb 18 '22 13:02 wowkin2