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

Update result to have separate attributes for return value and exception #103

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

RealOrangeOne
Copy link
Owner

This is a somewhat backwards partial solution for #19. result.result was always a big weird, so this instead separates it into 2 attributes:

  • .return_value is the return value from the task
  • .exception is the exception instance

This change is also reflected in the database worker, where 2 separate columns are used. A data migration is written to make this a seamless transition.

Copy link
Contributor

@jhthompson jhthompson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a nice improvement

@RealOrangeOne RealOrangeOne merged commit 9aa591f into master Aug 30, 2024
40 checks passed
@RealOrangeOne RealOrangeOne deleted the result-return-value branch August 30, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants