diff options
Diffstat (limited to 'scripts/enqueue.md')
-rw-r--r-- | scripts/enqueue.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/enqueue.md b/scripts/enqueue.md index 24ad205..210fb91 100644 --- a/scripts/enqueue.md +++ b/scripts/enqueue.md @@ -5,11 +5,15 @@ Inserts tasks into the queue with some time interval. ## Configuration - `enqueue` - - `list_file`: Path to the task list. The format is described below. (string) + - `list_file`: Path to the task list. The format is described below. (optional + string) + - `retry_failed`: Move failed completed tasks back to the queue instead of + adding from a list file. - `kind`: Task kind to insert. - `interval`: Number of seconds to wait in between inserts. (number) - `filter`: Only inserts tasks that have this flag attached. The flag will be - removed. (optional string) + removed. This filters for fail reason if `retry_failed` is used. (optional + string) - `default_flags`: List of flags attached to every task except where manually removed. (optional list of string) - `data`: Additional attributes that will be attached to the tasks data. @@ -24,6 +28,11 @@ enqueue: data: priority: 100 output: /home/user/somedir + + - retry_failed: true + kind: webpage-download + interval: 86400 + filter: "some_reason" ``` ## Task list file format |