Skip to content

Commit

Permalink
ref(taskbroker) Add at_most_once flag to task activations
Browse files Browse the repository at this point in the history
Some tasks can be marked as being only executed at most once. Add a flag to denote that status.

Tasks with this status are guaranteed to execute 0 or 1 times. The worker uses this flag to
determine how it should handle the task.
  • Loading branch information
evanh committed Nov 20, 2024
1 parent 4f931bd commit c22b150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proto/sentry_protos/sentry/v1/taskworker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ message RetryState {

// After this attempt the task should be put in the dead-letter-queue.
optional int32 deadletter_after_attempt = 4;

// Whether a task should be executed at most once.
optional bool at_most_once = 5;
}

enum TaskActivationStatus {
Expand Down

0 comments on commit c22b150

Please sign in to comment.