Repository navigation
fix: overwrite the scheduled job in the jobs example so a rerun does not fail - #1853
Merged
Merged
Conversation
…not fail Signed-off-by: Javier Aliaga <javier@diagrid.io>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1853 +/- ##
=========================================
Coverage 79.73% 79.73%
Complexity 2693 2693
=========================================
Files 268 268
Lines 7948 7948
Branches 844 844
=========================================
Hits 6337 6337
Misses 1255 1255
Partials 356 356 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
siri-varma
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The jobs example schedules
dapr-job-1and never deletes it. The scheduler keeps the job between runs, so when "Validate examples" retries after any failure, the jobs step fails withALREADY_EXISTS: job already exists: 'app||default||myapp||dapr-job-1'. This happened on the java 25 job of #1852: the first attempt failed in the exception example and the retry failed in the jobs example.The example now sets
overwriteon theScheduleJobRequest, so scheduling the same job again replaces it.Issue reference
None. Found in the CI run of #1852.
Checklist