public interface CommandExecutor
| Modifier and Type | Method and Description |
|---|---|
default void |
cleanup(CommandContext context,
io.digdag.client.config.Config state)
Runs a cleanup script when an attempt gets CANCEL_REQUESTED.
|
CommandStatus |
poll(CommandContext context,
com.fasterxml.jackson.databind.node.ObjectNode previousStatusJson)
Polls the command status by non-blocking and return CommandStatus.
|
CommandStatus |
run(CommandContext context,
CommandRequest request)
Starts a command and returns its state.
|
CommandStatus run(CommandContext context, CommandRequest request) throws java.io.IOException
context - request - java.io.IOExceptionCommandStatus poll(CommandContext context, com.fasterxml.jackson.databind.node.ObjectNode previousStatusJson) throws java.io.IOException
context - previousStatusJson - java.io.IOExceptiondefault void cleanup(CommandContext context, io.digdag.client.config.Config state) throws java.io.IOException
context - state - java.io.IOException