You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
@@ -152,8 +168,8 @@ Daemons run in the background and continuously fetch new changes based on a [cro
152
168
153
169
The following daemons are currently provided by Autoscan:
154
170
155
-
- Google Drive
156
-
- inotify
171
+
- Google Drive (Bernard)
172
+
- Inotify
157
173
158
174
#### Webhooks
159
175
@@ -201,16 +217,16 @@ triggers:
201
217
202
218
# filter with regular expressions
203
219
include:
204
-
- "^/mnt/unionfs/Media/*"
220
+
- '^/mnt/unionfs/Media/*'
205
221
exclude:
206
-
- "\.srt$"
222
+
- '\.srt$'
207
223
208
224
inotify:
209
225
- priority: 0
210
226
211
227
# filter with regular expressions
212
228
include:
213
-
- '/mnt/unionfs/Media/*'
229
+
- '^/mnt/unionfs/Media/*'
214
230
exclude:
215
231
- '\.(srt|pdf)$'
216
232
@@ -264,14 +280,9 @@ The processor then saves the Scans to its datastore.
264
280
*The processor uses SQLite as its datastore, feel free to hack around!*
265
281
266
282
In a separate process, the processor selects Scans from the datastore.
267
-
It will always group files belonging to the same folder together and it waits until all the files in that folder are older than the `minimum-age`, which defaults to 5 minutes.
283
+
It will always group files belonging to the same folder together and it waits until all the files in that folder are older than the `minimum-age`, which defaults to 10 minutes.
268
284
269
-
When all files are older than the minimum age, the processor will check whether all files exist on the local file system.
270
-
When at least one file exists on the file system, then the processor will call all the configured targets in parallel to request a folder scan.
271
-
272
-
When a file does not exist, the processor will increment the `retries` field of the Scan.
273
-
It also resets the timestamp so the file will not get scanned for at least `minimum-age`.
274
-
A Scan can only be retried up to a maximum number of retries, which defaults to 5.
285
+
When all files are older than the minimum age, then the processor will call all the configured targets in parallel to request a folder scan.
275
286
276
287
#### Anchor files
277
288
@@ -287,19 +298,23 @@ Each remote mount MUST have its own anchor file and its own name for that anchor
287
298
In addition, make sure to define the 'merged' path to the file and not the remote mount path.
288
299
This helps check whether the union-software is working correctly as well.
289
300
301
+
#### Minimum age
302
+
303
+
Autoscan does not check whether scan requests received by triggers exist on the file system.
304
+
Therefore, to make sure a file exists before it reaches the targets, you should set a minimum age.
305
+
The minimum age delays the scan from being send to the targets after it has been added to the queue by a trigger.
306
+
The default minimum age is set at 10 minutes to prevent common synchronisation issues.
307
+
290
308
#### Customising the processor
291
309
292
-
The processor allows you to set the maximum number of retries, as well as the minimum age of a Scan.
310
+
The processor allows you to set the minimum age of a Scan.
293
311
In addition, you can also define a list of anchor files.
294
312
295
313
A snippet of the `config.yml` file:
296
314
297
315
```yaml
298
-
# override the maximum number of retries
299
-
retries: 10
300
-
301
-
# override the minimum age to 2 minutes:
302
-
minimum-age: 2m
316
+
# override the minimum age to 30 minutes:
317
+
minimum-age: 30m
303
318
304
319
# set multiple anchor files
305
320
anchors:
@@ -377,11 +392,8 @@ With the examples given in the [triggers](#triggers), [processor](#processor) an
0 commit comments