Repository navigation
[0.9.0] Bound cron-init jobs and scheduler I/O - #153
Merged
Merged
Conversation
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.
When CouchDB or the Controller stalls,
cron-initcan leave Jobs active indefinitely while new scans keep starting. This change bounds each Job and its HTTP/pagination work, reports failures through the process exit code, and rejects incomplete scans before dispatching actions.Related to apache/openserverless#280.
concurrencyPolicy: Allow; add a 120-second Job deadline, resource requests/limits,restartPolicy: NeverandbackoffLimit: 0.This is a containment fix. It does not prevent duplicate invocations, recover missed executions, or provide exactly-once delivery.
Allowcan still overlap scans. The current time-window and autoexec semantics remain best effort; durable catch-up and idempotent acceptance require separate work. Read timeouts bound inactivity; the Job deadline is the final bound for a slow trickling response. Existing Jobs do not inherit the new settings.Validation: 102 local tests and executor doctests passed; 27 focused tests per candidate image passed. Baseline and ADV each passed 13 real-process HTTP fault/control scenarios, Kubernetes deadlines for Running and unschedulable Pending Pods, and Allow-overlap checks. Real synthetic Alpha/Beta actions covered multi-page scans, periodic execution, autoexec and not-due actions; each environment also passed 15 application checks with zero load errors. Temporary test resources were removed. Laboratory overlays preserved their existing CouchDB authentication and ADV-specific helpers.