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

Leverage Google Cloud Task deduplication mechanism #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfradj
Copy link

@jfradj jfradj commented Dec 20, 2024

This PR allows a job to define a cloud task id and thus leverage the powerful Google Cloud Task deduplication mechanism.

Indeed Google provide a guarantee deduplication mechanism

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or executed recently then the call will fail

Right now, the task id (i.e. task name) is build using a ULID, so each submitted job will have its own unique id.
Which is great most of the time.
But doing so totally prevents the use of the deduplication feature.

With this PR, any Job defining a class property public string $cloudTaskId; will be able to have control on the submitted task id and be able to rely on the deduplication feature.

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.

1 participant