Package io.kestra.plugin.scripts.exec
Class AbstractExecScript
java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.plugin.scripts.exec.AbstractExecScript
- All Implemented Interfaces:
io.kestra.core.models.Plugin,io.kestra.core.models.tasks.InputFilesInterface,io.kestra.core.models.tasks.NamespaceFilesInterface,io.kestra.core.models.tasks.OutputFilesInterface,io.kestra.core.models.tasks.RunnableTask<ScriptOutput>,io.kestra.core.models.tasks.TaskInterface,io.kestra.core.models.WorkerJobLifecycle
public abstract class AbstractExecScript
extends io.kestra.core.models.tasks.Task
implements io.kestra.core.models.tasks.RunnableTask<ScriptOutput>, io.kestra.core.models.tasks.NamespaceFilesInterface, io.kestra.core.models.tasks.InputFilesInterface, io.kestra.core.models.tasks.OutputFilesInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class io.kestra.core.models.tasks.Task
io.kestra.core.models.tasks.Task.TaskBuilder<C extends io.kestra.core.models.tasks.Task,B extends io.kestra.core.models.tasks.Task.TaskBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected @NotNull RunnerTypeio.kestra.core.models.tasks.runners.TargetOSprotected @Valid io.kestra.core.models.tasks.runners.TaskRunnerprotected @NotNull BooleanFields inherited from class io.kestra.core.models.tasks.Task
disabled, id, retry, timeout, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandsWrappercommands(io.kestra.core.runners.RunContext runContext) abstract Stringabstract DockerOptionsGets the list of additional commands to be used for defining interpreter errors handling.protected DockerOptionsinjectDefaults(@NotNull DockerOptions original) Allow setting Docker options defaults values.voidkill()mayAddExitOnErrorCommands(List<String> commands) Methods inherited from class io.kestra.core.models.tasks.Task
findById, findById, getDescription, getDisabled, getId, getLogLevel, getRetry, getTimeout, getType, getWorkerGroup, isAllowFailure, isFlowable, isSendToWorkerTaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.models.tasks.InputFilesInterface
getInputFilesMethods inherited from interface io.kestra.core.models.tasks.NamespaceFilesInterface
getNamespaceFilesMethods inherited from interface io.kestra.core.models.tasks.OutputFilesInterface
getOutputFilesMethods inherited from interface io.kestra.core.models.tasks.RunnableTask
runMethods inherited from interface io.kestra.core.models.WorkerJobLifecycle
stop
-
Field Details
-
runner
-
taskRunner
@PluginProperty @Beta @Valid protected @Valid io.kestra.core.models.tasks.runners.TaskRunner taskRunner -
beforeCommands
-
env
@PluginProperty(additionalProperties=java.lang.String.class, dynamic=true) protected Map<String,String> env -
warningOnStdErr
-
interpreter
-
failFast
-
targetOS
public io.kestra.core.models.tasks.runners.TargetOS targetOS
-
-
Constructor Details
-
AbstractExecScript
public AbstractExecScript()
-
-
Method Details
-
getDocker
-
getContainerImage
-
injectDefaults
Allow setting Docker options defaults values. To make it work, it is advised to set the 'docker' field like:@Schema( title = "Docker options when using the `DOCKER` runner", defaultValue = "{image=python, pullPolicy=ALWAYS}" ) @PluginProperty @Builder.Default protected DockerOptions docker = DockerOptions.builder().build(); -
commands
protected CommandsWrapper commands(io.kestra.core.runners.RunContext runContext) throws io.kestra.core.exceptions.IllegalVariableEvaluationException - Throws:
io.kestra.core.exceptions.IllegalVariableEvaluationException
-
getBeforeCommandsWithOptions
-
mayAddExitOnErrorCommands
-
getExitOnErrorCommands
Gets the list of additional commands to be used for defining interpreter errors handling.- Returns:
- list of commands;
-
kill
public void kill()- Specified by:
killin interfaceio.kestra.core.models.WorkerJobLifecycle
-