Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring: update Task response data structure (#439)
* enforce message and error in case of status False, issue 351 * refactoring _task_result function to address the improvements of task 351 * removing status argument from _task_result to better check error validation * In discussion with @kairoaraujo, we identified an opportunity to enhance the consistency of Task Results in our codebase. Previously, the Celery Task result for `FAILURE` was structured as a dictionary with keys `task_id`, `state` and `result`. The `result` field was defined as either a `str` or `Dict[str, any]`, causing inconsistency. This commit introduces these changes to ensure a consistent data structure and aligns with the specified API documentation. For more details, refer to the discussions in this pull request /pull/439
- Loading branch information