django-rq
django-rq copied to clipboard
Any example on how to use this on a django-graphene project?
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)
You'll need to have mutations and jobs defined separately. And then from mutation you can start a background job.