Skip to content

chore: schedule recurring jobs for scanning only when necessary#1840

Merged
netomi merged 1 commit into
mainfrom
fix-recurring-scanning-jobs
May 15, 2026
Merged

chore: schedule recurring jobs for scanning only when necessary#1840
netomi merged 1 commit into
mainfrom
fix-recurring-scanning-jobs

Conversation

@netomi
Copy link
Copy Markdown
Contributor

@netomi netomi commented May 15, 2026

Previously, various scanning related jobs where always scheduled with the @Recurring annotation.

However, these jobs should only be scheduled and executed when scanning is actually enabled.

This PR cleans this up with a ScheduleScanningJob component that runs when the application started up and schedules the job only when necessary. The jobs are deleting when scanning is disabled.

Also the GitLeaks job did hard-code the schedule instead of using the value from the config, that was also fixed.

@netomi netomi merged commit cf938de into main May 15, 2026
8 checks passed
@netomi netomi deleted the fix-recurring-scanning-jobs branch May 15, 2026 14:09
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