llama dev clean

Clean up the LLAMA output directory, rotating out-of-date auxilliary files out of the way and archiving them on remote storage.

usage: llama dev clean [-h] [--dry-run-dirs] [--downselect DOWNSELECT]
                       [--print-downselections PRINT_DOWNSELECTIONS]
                       [-l LOGFILE]
                       [-v {debug,info,warning,error,critical,none}]
                       [--repeat REPEAT] [--dry-run] [--testevents TESTEVENTS]
                       [--test-archive-dir TEST_ARCHIVE_DIR]
                       [run]

Named Arguments

--repeat

If provided, run again every REPEAT seconds.

--dry-run

If provided, don’t actually do anything; just log what would be done.

Default: False

--testevents

Clean up old test event files created by GCN listeners, LVAlert listeners, and the like. Provide the minimum age in seconds (s) of test events that should be cleaned up (for example, specify 86400 to clean up test events older than a day). You will need to specify a pattern for matching test events that need to be cleaned using the run positional argument (see llama run -h help documentation for details).

--test-archive-dir

The destination directory for archived events if --testevents is specified. (default: /root/.local/share/llama/test_event_archive)

Default: “/root/.local/share/llama/test_event_archive”

filter runs and events (see: ``llama.run``)

run

A pattern specifying a list of directories to update of the form /run/directory/event*glob. See end of llama run -h documentation for details. (default: /root/.local/share/llama/current_run/*

--dry-run-dirs

Print the runs and event directories that would be affected and exit without taking further action.

Default: False

--downselect

Arguments to pass to the downselect method of runs selected by the run argument (note that eventid_filter is already implicitly set by the glob pattern specified in run). Arguments will only be parsed as booleans (if they equal “True” or “False”) or strings and should be separated by commas, e.g. --downselect manual=False,fhnameexists=PAstro. Omit a list of downselections or provide an empty string to specify no further downselections beyond the one implied by the run argument. (default: None)

--print-downselections

Print available downselections.

logging settings

-l, --logfile

File where logs should be written. By default, all logging produced by llama run goes to both an archival logfile shared by all instances of the process as well as STDERR. The archival logfile can be overridden with this argument. If you specify /dev/null or a path that resolves to the same, logfile output will be suppressed automatically. Logs written to the logfile are always at maximum verbosity, i.e. DEBUG. (default: /root/.local/share/llama/logs/llama.dev.clean.log)

Default: “/root/.local/share/llama/logs/llama.dev.clean.log”

-v, --verbosity

Possible choices: debug, info, warning, error, critical, none

Set the verbosity level at which to log to STDOUT; the --logfile will ALWAYS receive maximum verbosity logs (unless it is completely supressed by writing to /dev/null). Available choices correspond to logging severity levels from the logging library, with the addition of none if you want to completely suppress logging to standard out. (default: info)

Default: “info”