Skip to content

Conversation

@evanh
Copy link
Member

@evanh evanh commented Nov 20, 2024

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.

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.
@evanh evanh merged commit fba9624 into main Nov 25, 2024
6 checks passed
evanh added a commit to getsentry/sentry that referenced this pull request Nov 26, 2024
If a task is marked as at_most_once, then check the cache to see if the
task has already been seen
before. If it has, assume the task has already been executed and
continue. Otherwise store the task
ID and execute the task.

Depends on getsentry/sentry-protos#66

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
andrewshie-sentry pushed a commit to getsentry/sentry that referenced this pull request Dec 2, 2024
If a task is marked as at_most_once, then check the cache to see if the
task has already been seen
before. If it has, assume the task has already been executed and
continue. Otherwise store the task
ID and execute the task.

Depends on getsentry/sentry-protos#66

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
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.

3 participants