You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
impl_meta_api_error!(RestartInvocationNotStartedError:TOO_EARLY"The invocation cannot be restarted because it's not running yet, meaning it might have been scheduled or inboxed.");
197
197
198
+
#[derive(Debug, thiserror::Error)]
199
+
#[error(
200
+
"Resetting the invocation '{0}' is not supported, because it was started using the old service protocol."
impl_meta_api_error!(ResetInvocationUnsupportedError:UNPROCESSABLE_ENTITY"Resetting the invocation is not supported, because it was started using the old service protocol.");
204
+
205
+
#[derive(Debug, thiserror::Error)]
206
+
#[error(
207
+
"The invocation '{0}' cannot be reset because it's not running. For completed invocations, use restart instead."
impl_meta_api_error!(ResetInvocationNotRunningError:TOO_EARLY"The invocation cannot be reset because it's not running. For completed invocations, use restart instead.");
211
+
198
212
// --- Old Meta API errors. Please don't use these anymore.
199
213
200
214
/// This error is used by handlers to propagate API errors,
/// NOTE: If the new picked up deployment doesn't support the current service protocol version, the invocation will remain stuck in a retry loop. Use with caution!
description = "Reset the given invocation, truncating the progress from the given journal entry index onward and resuming afterward.",
596
+
operation_id = "reset_invocation",
597
+
tags = "invocation",
598
+
parameters(
599
+
path(
600
+
name = "invocation_id",
601
+
description = "Invocation identifier.",
602
+
schema = "std::string::String"
603
+
),
604
+
query(
605
+
name = "truncate_from",
606
+
description = "Journal entry index to truncate from, inclusive. The index MUST correspond to a command entry or to a signal notification, and it cannot be zero, otherwise this operation will fail. If not provided, it defaults to 1 (after the first entry).",
607
+
required = false,
608
+
style = "simple",
609
+
allow_empty_value = false,
610
+
schema = "u32",
611
+
),
612
+
query(
613
+
name = "previous_attempt_retention",
614
+
description = "If set, it will override the configured completion_retention/journal_retention when the invocation was executed the first time. If none of the completion_retention/journal_retention are configured, and neither this previous_attempt_retention, then the previous attempt won't be retained at all. Can be configured using humantime format or ISO8601.",
615
+
required = false,
616
+
style = "simple",
617
+
allow_empty_value = false,
618
+
schema = String,
619
+
),
620
+
query(
621
+
name = "apply_to_child_calls",
622
+
description = "What to do with children calls that have been created after the truncation point. By default, kills all the children calls. This doesn't apply to sends.",
623
+
required = false,
624
+
style = "simple",
625
+
allow_empty_value = false,
626
+
schema = ResetInvocationApplyToChildInvocations,
627
+
),
628
+
query(
629
+
name = "apply_to_pinned_deployment",
630
+
description = "What to do with pinned deployment. By default, the current pinned deployment will be kept.",
0 commit comments