Skip to main content

obshell task commands

This topic describes the task commands of obshell, which are used to manage obshell tasks. You can use the -h/--help option in a command to view the help information of the command. For example, you can run the obshell task show -h --seekdb command to view the help information of the show command for seekdb. In this command, --seekdb indicates that the help information of the show command for seekdb is to be viewed.

obshell task show

You can run this command to view information about a task.

obshell task show [-i] [-d] [--port] [--seekdb] [-6] [-v]

# example
obshell task show --seekdb --port 2886

The following table describes the options.

OptionRequiredData TypeDefault ValueDescription
-i/--idNostringN/AThe ID of the task to be viewed. If this option is not specified, the current task is displayed. If no task is being executed, no task information is displayed.
-d/--show_detailNoN/AN/AThis option does not require a value. If this option is specified, detailed information about the task is displayed.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If this option is specified, the command is applied to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If this option is specified, IPv6 is used.
-v/--verboseNoN/AN/AThis option does not require a value. If this option is specified, detailed execution process information is displayed.

obshell task cancel

You can run this command to cancel an uncompleted task.

obshell task cancel -i [--port] [--seekdb] [-6] [-y]

# example
obshell task cancel -i 11 --seekdb

The following table describes the options.

OptionRequiredData TypeDefault ValueDescription
-i/--idYesstringN/AThe ID of the task to be canceled.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If this option is specified, the command is applied to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If this option is specified, IPv6 is used.
-y/--yesNoN/AN/AThis option does not require a value. If this option is specified, the command skips the confirmation.

obshell task rollback

You can run this command to roll back a failed task.

obshell task rollback -i [--port] [--seekdb] [-6] [-y]

# example
obshell task rollback -i 11 --seekdb

The following table describes the options.

OptionRequiredData TypeDefault ValueDescription
-i/--idYesstringN/AThe ID of the task to be rolled back.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If this option is specified, the command is applied to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If this option is specified, IPv6 is used.
-y/--yesNoN/AN/AThis option does not require a value. If this option is specified, the command skips the confirmation.

obshell task retry

You can run this command to retry a failed task.

obshell task retry -i [--port] [--seekdb] [-6] [-y]

# example
obshell task retry -i 11 --seekdb

The options are described in the following table:

OptionRequiredData TypeDefault ValueDescription
-i/--idYesstringN/AThe ID of the task to be retried.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can also specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If you specify this option, the command applies to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If you specify this option, IPv6 is used.
-y/--yesNoN/AN/AThis option does not require a value. If you specify this option, the command skips the confirmation.

obshell task pass

You can run this command to skip a failed task.

obshell task pass -i [--port] [--seekdb] [-6] [-y]

# example
obshell task pass -i 11 --seekdb

The options are described in the following table:

OptionRequiredData TypeDefault ValueDescription
-i/--idYesstringN/AThe ID of the task to be skipped.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can also specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If you specify this option, the command applies to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If you specify this option, IPv6 is used.
-y/--yesNoN/AN/AThis option does not require a value. If you specify this option, the command skips the confirmation.

obshell task watch

You can run this command to view the execution progress of a specified task in real time.

obshell task watch -i [--port] [--seekdb] [-6]

# example
obshell task watch -i 11 --seekdb

The options are described in the following table:

OptionRequiredData TypeDefault ValueDescription
-i/--idYesintN/AThe ID of the running task to be viewed.
--portNoint2886The port number of obshell. If you do not want to specify the port number by using this option, you can also specify it by using the environment variable OBSHELL_PORT_FOR_SEEKDB.
--seekdbNoN/AN/AThis option does not require a value. If you specify this option, the command applies to seekdb.
-6/--use-ipv6NoN/AN/AThis option does not require a value. If you specify this option, IPv6 is used.