Skip to content

systemslab experiment resubmit ​

Description Submit an experiment again with the spec, parameters, and priority it was originally submitted with.
Usage systemslab experiment resubmit [OPTIONS] <UUID>

Description ​

The systemslab experiment resubmit command submits a new experiment that is a copy of an existing one. It is useful for retrying an experiment that failed for a transient reason. The ID of the new experiment is printed to stdout.

SystemsLab records the evaluated spec, the parameters, and the priority of every experiment when it is submitted. systemslab experiment show displays the recorded priority and parameters.

Without --spec, the experiment is resubmitted using its recorded spec, so it runs exactly as it did before. Only --priority and --name can be changed this way, since the recorded spec already has its parameters substituted in.

To change parameters, pass the spec file the experiment was originally submitted with to --spec, along with -p overrides. The spec is evaluated with the experiment's recorded parameters, with any -p values taking precedence. For a TOML spec with a [matrix], the recorded parameters select the same variant as before.

bash
# Run a failed experiment again, exactly as before.
systemslab experiment resubmit 0186c3a6-301f-71c1-7ace-69a99ff0e1bc

# Run it again at a higher priority.
systemslab experiment resubmit 0186c3a6-301f-71c1-7ace-69a99ff0e1bc --priority 60

# Run it again with a longer timeout, keeping its other parameters.
systemslab experiment resubmit 0186c3a6-301f-71c1-7ace-69a99ff0e1bc \
    --spec experiment.toml -p CXS_TIMEOUT=10800

Experiments submitted before SystemsLab recorded parameters have none, so they can only be resubmitted as they were, or with every parameter given again with -p.

Options ​

OptionDefaultDescription
<UUID>The ID of the experiment to resubmit.
--spec <FILE> Evaluate this spec file instead of reusing the recorded spec. It should be the spec the experiment was originally submitted with. Needed to change parameters with -p.
-p, --param <key=value> Override a parameter the experiment was submitted with. Takes the same forms as systemslab submit -p and can be given multiple times. Requires --spec.
--jpath <JPATH> Extra include paths to search for jsonnet include files. Requires --spec.
--priority <PRIORITY> Scheduling priority for the new experiment. Defaults to the original experiment's priority: the one it was submitted with, or the one it was last given with systemslab experiment set-priority.
-n, --name <NAME> The name of the new experiment. Defaults to the name in the spec.
--context <CONTEXT> Context to which to attach the new experiment. If omitted then a new context is created for it.
--workspace <WORKSPACE> Add the new context to this workspace, given by its slug or id. Repeat the flag to add it to several workspaces. Defaults to the default workspace. Has no effect with --context.
--no-workspace Don't add the new context to the default workspace.
--label <KEY=VALUE> Label the new context KEY=VALUE in each workspace it is added to. Can't be combined with --context.

Common Options ​

OptionDefaultDescription
--systemslab-url The URL at which to access the systemslab server.
--colorauto Controls when color is used in the output. Possible values are auto, always, and never.
--output-formatlong Output format to use when outputting messages. long will result output designed to be human-readable while short is short output meant to be used within scripts.

Environment Variables ​

VariableDescription
SYSTEMSLAB_URLSpecify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url.