Package io.kestra.core.services
Class ExecutionService
java.lang.Object
io.kestra.core.services.ExecutionService
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarkAs(Execution execution, String taskRunId, State.Type newState) purge(Boolean purgeExecution, Boolean purgeLog, Boolean purgeMetric, Boolean purgeStorage, String tenantId, String namespace, String flowId, ZonedDateTime endDate, List<State.Type> state) resume(Execution execution, State.Type newState) Resume a paused execution to a new state.
-
Field Details
-
executionQueue
-
-
Constructor Details
-
ExecutionService
public ExecutionService()
-
-
Method Details
-
restart
- Throws:
Exception
-
replay
public Execution replay(Execution execution, @Nullable String taskRunId, @Nullable Integer revision) throws Exception - Throws:
Exception
-
markAs
public Execution markAs(Execution execution, String taskRunId, State.Type newState) throws Exception - Throws:
Exception
-
purge
public ExecutionService.PurgeResult purge(Boolean purgeExecution, Boolean purgeLog, Boolean purgeMetric, Boolean purgeStorage, @Nullable String tenantId, @Nullable String namespace, @Nullable String flowId, @Nullable ZonedDateTime endDate, @Nullable List<State.Type> state) throws IOException - Throws:
IOException
-
resume
Resume a paused execution to a new state. The execution must be paused or this call will be a no-op.- Parameters:
execution- the execution to resumenewState- should be RUNNING or KILLING, other states may lead to undefined behaviour- Returns:
- the execution in the new state.
- Throws:
InternalException- if the state of the execution cannot be updated
-