pub enum Mutation {
Cancel {
namespace: String,
workflow_id: String,
run_id: String,
},
Terminate {
namespace: String,
workflow_id: String,
run_id: String,
reason: String,
},
Signal {
namespace: String,
workflow_id: String,
run_id: String,
name: String,
input: Option<String>,
},
Delete {
namespace: String,
workflow_id: String,
run_id: String,
},
Reset {
namespace: String,
workflow_id: String,
run_id: String,
event_id: i64,
reason: String,
},
Update {
namespace: String,
workflow_id: String,
run_id: String,
name: String,
input: Option<String>,
},
PauseSchedule {
namespace: String,
schedule_id: String,
paused: bool,
},
TriggerSchedule {
namespace: String,
schedule_id: String,
},
DeleteSchedule {
namespace: String,
schedule_id: String,
},
CreateSchedule {
namespace: String,
schedule_id: String,
workflow_id: String,
workflow_type: String,
task_queue: String,
spec: String,
input: Option<String>,
},
BackfillSchedule {
namespace: String,
schedule_id: String,
range: TimeRange,
overlap: Overlap,
},
}Expand description
A change to a cluster, fully specified.
Variants§
Cancel
Terminate
Signal
Fields
Delete
Reset
Rewind to a completed workflow task and replay forward from there. The event id is
already resolved to a valid reset point. See history::reset_point.
Update
Send an update and wait for its outcome. Unlike a signal, an update can be rejected by the workflow and reports back.
PauseSchedule
Pause or resume a schedule. paused is the state being moved to.
TriggerSchedule
Run a scheduled workflow now, without waiting for its next time.
DeleteSchedule
CreateSchedule
Create a schedule. spec is passed to the server as a cron string, which also
accepts @every 1h.
Fields
BackfillSchedule
Replay every action the schedule would have taken over a past window.
Implementations§
Source§impl Mutation
The three schedule operations act on a schedule id rather than an execution, so they do
not share the workflow accessors.
impl Mutation
The three schedule operations act on a schedule id rather than an execution, so they do not share the workflow accessors.
Sourcepub fn schedule_id(&self) -> Option<&str>
pub fn schedule_id(&self) -> Option<&str>
The schedule this acts on, if it is a schedule operation at all.
Source§impl Mutation
impl Mutation
Sourcepub fn past_tense(&self) -> &'static str
pub fn past_tense(&self) -> &'static str
How to say it happened. Spelled out rather than derived: “cancel” + “d” is “canceld”, and a status line that cannot spell does not inspire confidence in what it just did.
Sourcepub fn subject_plural(&self) -> &'static str
pub fn subject_plural(&self) -> &'static str
What a batch of this is a batch of, for the heading over a count.
pub fn namespace(&self) -> &str
pub fn workflow_id(&self) -> &str
pub fn run_id(&self) -> &str
Sourcepub fn is_destructive(&self) -> bool
pub fn is_destructive(&self) -> bool
Whether the workflow does not survive it.
A signal is a change but not a loss; a delete removes the history itself and cannot be walked back even by starting the workflow again.
Sourcepub fn destroys_history(&self) -> bool
pub fn destroys_history(&self) -> bool
Whether it destroys the record as well as the run. Only delete does, which is why it
is the one that asks for more than a keypress.