feat(epic4): продолжение ожидающей Task после ввода (Story 4.5)
CI / UI Checks (pull_request) Successful in 8s
CI / Rust Checks (pull_request) Successful in 21m42s
CI / Rust Feature Validation (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Required Checks (pull_request) Successful in 1s
CI / Deploy (pull_request) Skipped
CI / UI Checks (pull_request) Successful in 8s
CI / Rust Checks (pull_request) Successful in 21m42s
CI / Rust Feature Validation (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Required Checks (pull_request) Successful in 1s
CI / Deploy (pull_request) Skipped
Durable worker приостанавливает Task как input_required до dispatch, если закреплённая схема требует отсутствующее поле; authorized schema-validated update атомарно и с аудитом возобновляет тот же Task ровно один раз. Replay/conflict/TTL безопасны, ожидание удерживает admission permit. Additive schema v30: task_input_requests, fingerprint/version, TTL-индекс.
This commit is contained in:
1 parent
d80eda7329
commit
90e5357a08
35 files changed
+3243
-91
No files matched your search
@@ -243,6 +243,18 @@ impl TaskWorker {
|
||||
// Reap finished attempts before claiming more.
|
||||
while active.try_join_next().is_some() {}
|
||||
|
||||
// The bounded TTL sweep runs on every poll, including when all local slots are busy: an
|
||||
// expired input wait must end `failed` with an audit reason even without free capacity.
|
||||
match self.store.expire_input_waits(self.config.batch_limit).await {
|
||||
Ok(expired) if expired > 0 => {
|
||||
debug!(expired, "expired input waits were failed")
|
||||
}
|
||||
Ok(_) => {}
|
||||
Err(error) => {
|
||||
warn!(error = %error, "input TTL sweep failed; retrying on next scan")
|
||||
}
|
||||
}
|
||||
|
||||
let available = self.config.max_inflight.saturating_sub(active.len());
|
||||
if available > 0 {
|
||||
let batch_limit = self
|
||||
@@ -405,6 +417,9 @@ async fn process_lease(
|
||||
TaskAttemptOutcome::OutcomeUnknown => {
|
||||
warn!(task_id = %task_id, "durable task outcome is uncertain; no automatic retry");
|
||||
}
|
||||
TaskAttemptOutcome::WaitingForInput => {
|
||||
debug!(task_id = %task_id, "durable task suspended until validated input arrives");
|
||||
}
|
||||
TaskAttemptOutcome::Stopped => {
|
||||
debug!(task_id = %task_id, "durable task attempt stopped without a new outcome");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user