-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
If we return an object with some data from the tasks, we can then see TaskResults in the admin for some users. We should do that to improve visibility of tasks and make it easier to debug.
For now, my thoughts:
- Enable TaskResult in the admin to see run tasks (we can worry about disabling it for general users later if its confusing)
- Ensure we return a result object from tasks, similar to https://github.com/developmentseed/moz-proenergia-backend/blob/main/proenergia/celery_tasks.py#L26
We should return the result for errors and success with appropriate messages and status. This will then automatically populate the TaskResult model and allow us to see executed tasks and errors, if any, in a slightly nicer manner than having to go through server logs.
@willemarcel does this sound fine to you?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels