Introduce task_attempts
#17
Closed
kirillsalykin
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
I'm generally in favor of more observability and think this sounds like a good direction. One thing to bear in mind here is if this will introduce a join (for example, it would if |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm intending to look at incorporating this before cutting the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a history/debug purpose I think it makes sense to track task attempts in a separate table.
So, next to this:
what do you think about having this:
This nicely captures all history of attempts and error_message is not overriden everytime.
(Maybe also make
error
a jsonb so a little more info can be put there).(Maybe) Fields
started_at
,succeeded_at
andlast_failed_at
can be selected from theattempts
table, so you dont need to keep the state up to date and keep thetask
table cleaner.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions