fix: Singleton-Guard target-spezifisch für Multi-Target-Jobs (v6.1.0) - #124
Merged
Conversation
hasRunningExecution() prüfte job-weit ohne Target-Filter. Bei Jobs mit mehreren Targets blockierte der erste gestartete Target alle weiteren, obwohl jedes Target eine unabhängige Ausführung auf einem anderen System darstellt. Pro Scheduler-Tick erschien dadurch nur ein einziger Eintrag in der Ausführungshistorie. Neue Methode hasRunningExecutionForTarget() mit AND target = :target im SQL. Singleton-Guard und Retry-Pending-Check verwenden jetzt hasPendingRetryForTarget() statt hasPendingRetry(), sodass der Guard nur feuert, wenn dasselbe Target bereits läuft oder auf einen Retry wartet. Bestehende Single-Target-Jobs sind nicht betroffen. Tests: singletonJobWithPendingRetryReturns409 auf Same-Target-Semantik angepasst; zwei neue Tests für das Durchlassen anderer Targets.
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.
Summary
ExecutionStartEndpoint::hasRunningExecution()prüfte job-weit (WHERE cronjob_id = :id AND finished_at IS NULL) ohne Target-Filter. Bei Singleton-Jobs mit mehreren Targets (z.B. Job 146 mit di, dm, dv, dvme) blockierte der erste gestartete Target alle weiteren — nur ein Target pro Scheduler-Tick erschien in der Ausführungshistorie.hasRunningExecutionForTarget()mitAND target = :target-Filter. Der Singleton-Guard lässt jetzt mehrere unabhängige Targets desselben Jobs gleichzeitig laufen — nur dasselbe Target auf demselben Host wird geblockt.singletonJobWithPendingRetryReturns409auf Same-Target-Semantik angepasst; zwei neue Tests für korrektes Durchlassen anderer Targets.Test plan