celery / django-celery-results

Celery result back end with django
Other
668 stars 206 forks source link

Save user id in task result #333

Open jameslao opened 1 year ago

jameslao commented 1 year ago

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

orrefailaT commented 1 year ago

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

jameslao commented 1 year ago

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.