Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a result field to tasks #6079

Open
mdellweg opened this issue Nov 26, 2024 · 1 comment
Open

Add a result field to tasks #6079

mdellweg opened this issue Nov 26, 2024 · 1 comment
Labels

Comments

@mdellweg
Copy link
Member

The way we currently need to infer what a task that is basically a deferred api view actually did for us is weird.
We should use the serializer from the viewset that dispatched the task and serialize the result into the tasks "result" field.
This would make the "typical task" much more like a "deferred view". (scheduled tasks can still leave the result empty).

This relates to:
#2028
#3771

@quba42
Copy link
Contributor

quba42 commented Dec 10, 2024

Does this mean users waiting on a task result will no longer need to parse the hrefs in created_resources to figure out what type of things were created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants