diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-02 22:35:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-02 22:35:33 +0200 |
commit | 5f6dfeada0158c815f0b7b474ec61c18db6af5db (patch) | |
tree | d6109965e7a17549fba5e6fbf96d393db05ab5ed /scripts/enqueue.md | |
parent | 2b56668dc89d61248fffeb75a6c8d1136aa7fa39 (diff) | |
download | isda-5f6dfeada0158c815f0b7b474ec61c18db6af5db.tar isda-5f6dfeada0158c815f0b7b474ec61c18db6af5db.tar.bz2 isda-5f6dfeada0158c815f0b7b474ec61c18db6af5db.tar.zst |
retry tasks in enqueue worker script
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 |