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

Save user id in task result

Open jameslao opened this issue 3 years ago • 2 comments

I feel it would be helpful to store the user id in the task results, especially for site where multiple people can start tasks.

jameslao avatar Jul 22 '22 14:07 jameslao

Could you pass the user's id into the task as a parameter, and return it with the other task results?

orrefailaT avatar Aug 08 '22 04:08 orrefailaT

Could you pass the user's id into the task as a parameter, and return it with the other task results?

Sure can, but just want to save it to the table so may need to change the model.

jameslao avatar Aug 08 '22 05:08 jameslao