Do not run tasks if required mounts are not present.

A configuration item `imports.mounts` is added to
`etc/config.yaml`. This should be a list of paths
which must be non-empty. If any of the paths in that
list is empty, runner.sh will abort.

Closes #200.
This commit is contained in:
D. Berge
2023-04-10 15:04:12 +02:00
parent 6d8a199a3c
commit 8118641231
3 changed files with 40 additions and 0 deletions

View File

@@ -32,6 +32,13 @@ imports:
# least this many seconds ago.
file_min_age: 60
# These paths refer to remote mounts which must be present in order
# for imports to work. If any of these paths are empty, import actions
# (including data deletion) will be inhibited. This is to cope with
# things like transient network failures.
mounts:
- /srv/mnt/Data
queues:
asaqc:
request: