- --conf=FILE|KEY=VAL|STRING|NAME
The
--confoption allows configuration for a Flux instance started viaflux-batch(1)orflux-alloc(1)to be iteratively built on the command line. On first use, aconf.jsonentry is added to the internal jobspec file archive, and-c{{tmpdir}}/conf.jsonis added to the flux broker command line. Each subsequent use of the--confoption updates this configuration.The argument to
--confmay be in one of several forms:A multiline string, e.g. from a batch directive. In this case the string is parsed as JSON or TOML:
# flux: --conf=""" # flux: [resource] # flux: exclude = "0" # flux: """
A string containing a
=character, in which case the argument is parsed asKEY=VAL, whereVALis parsed as JSON, e.g.:--conf=resource.exclude=\"0\"
A string ending in
.jsonor.toml, in which case configuration is loaded from a JSON or TOML file.If none of the above conditions match, then the argument
NAMEis assumed to refer to a "named" config fileNAME.tomlorNAME.jsonwithin the following search path, in order of precedence:XDG_CONFIG_HOME/flux/configor$HOME/.config/flux/configifXDG_CONFIG_HOMEis not set$XDG_CONFIG_DIRS/flux/configor/etc/xdg/flux/configifXDG_CONFIG_DIRSis not set. Note thatXDG_CONFIG_DIRSmay be a colon-separated path.
- --bg
(alloc only) Do not interactively attach to the instance. Instead, print jobid on stdout once the instance is ready to accept jobs. The instance will run indefinitely until a time limit is reached, the job is canceled, or it is shutdown with
flux shutdown JOBID(preferred). If a COMMAND is given then the job will run until COMMAND completes. Note thatflux job attach JOBIDcannot be used to interactively attach to the job (though it will print any errors or output).
- --broker-opts=OPT
Pass specified options to the Flux brokers of the new instance. This option may be specified multiple times.
- --wrap
(batch only) The
--wrapoption wraps the specified COMMAND and ARGS in a shell script, by prefixing with#!/bin/sh. If no COMMAND is present, then a SCRIPT is read on stdin and wrapped in a /bin/sh script.
- --dump=[FILE]
When the job script is complete, archive the Flux instance's KVS content to
FILE, which should have a suffix known to libarchive(3), and may be a mustache template as described above for--output. The content may be unarchived directly or examined within a test instance started with theflux-start --recoveryoption. IfFILEis unspecified,flux-{{jobid}}-dump.tgzis used.
- --quiet
Suppress logging of jobids to stdout