You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an easy way to determine if the current task being processed is a retry? It is not in the context I guess passed to ProcessTask, would be nice to have it in the Task perhaps.
This is useful if I have already completed some set of action, but then need to retry some aspect that failed - unless I need to store some relationship that a particular task failed and thus subsequent will be a retry?
I prefer I do not need to store this, as I see in redis we already are storing the number of retries which can be used as a determinant.
Maybe I have missed some means to be able to just get this information somehow?
The text was updated successfully, but these errors were encountered:
Current APIs don't offer an ability to determine whether a Task passed to your Handler is a retry task.
I think it makes total sense to put task metadata such as RetryCount in the context Value.
I'll do a little bit of research and update this thread with a proposal 👍
Is there an easy way to determine if the current task being processed is a retry? It is not in the context I guess passed to ProcessTask, would be nice to have it in the Task perhaps.
This is useful if I have already completed some set of action, but then need to retry some aspect that failed - unless I need to store some relationship that a particular task failed and thus subsequent will be a retry?
I prefer I do not need to store this, as I see in redis we already are storing the number of retries which can be used as a determinant.
Maybe I have missed some means to be able to just get this information somehow?
The text was updated successfully, but these errors were encountered: