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
Convert the old mirror syncing queue to the more modern queue format.
Fix a bug in the from the repo-archive queue PR - the assumption was made that uniqueness could be enforced with by checking equality in a map in channel unique queues - however this only works for primitive types - which was the initial intention but is an imperfect. This is fixed by marshalling the data and placing the martialled data in the unique map instead.
The documentation is also updated to add information about the deprecated configuration values.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+36-3
Original file line number
Diff line number
Diff line change
@@ -54,10 +54,10 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
54
54
-`DEFAULT_PUSH_CREATE_PRIVATE`: **true**: Default private when creating a new repository with push-to-create.
55
55
-`MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user,
56
56
`-1` means no limit.
57
-
-`PULL_REQUEST_QUEUE_LENGTH`: **1000**: Length of pull request patch test queue, make it
57
+
-`PULL_REQUEST_QUEUE_LENGTH`: **1000**: Length of pull request patch test queue, make it. **DEPRECATED** use `LENGTH` in `[queue.pr_patch_checker]`.
58
58
as large as possible. Use caution when editing this value.
59
59
-`MIRROR_QUEUE_LENGTH`: **1000**: Patch test queue length, increase if pull request patch
60
-
testing starts hanging.
60
+
testing starts hanging.**DEPRECATED** use `LENGTH` in `[queue.mirror]`.
61
61
-`PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: Preferred Licenses to place at
62
62
the top of the list. Name must match file name in options/license or custom/options/license.
63
63
-`DISABLE_HTTP_GIT`: **false**: Disable the ability to interact with repositories over the
@@ -382,6 +382,8 @@ relation to port exhaustion.
382
382
383
383
## Queue (`queue` and `queue.*`)
384
384
385
+
Configuration at `[queue]` will set defaults for queues with overrides for individual queues at `[queue.*]`. (However see below.)
386
+
385
387
-`TYPE`: **persistable-channel**: General queue type, currently support: `persistable-channel` (uses a LevelDB internally), `channel`, `level`, `redis`, `dummy`
386
388
-`DATADIR`: **queues/**: Base DataDir for storing persistent and level queues. `DATADIR` for individual queues can be set in `queue.name` sections but will default to `DATADIR/`**`common`**. (Previously each queue would default to `DATADIR/`**`name`**.)
387
389
-`LENGTH`: **20**: Maximal queue size before channel queues block
@@ -400,6 +402,37 @@ relation to port exhaustion.
400
402
-`BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
401
403
-`BOOST_WORKERS`: **1** (v1.14 and before: **5**): This many workers will be added to the worker pool if there is a boost.
402
404
405
+
Gitea creates the following non-unique queues:
406
+
407
+
-`code_indexer`
408
+
-`issue_indexer`
409
+
-`notification-service`
410
+
-`task`
411
+
-`mail`
412
+
-`push_update`
413
+
414
+
And the following unique queues:
415
+
416
+
-`repo_stats_update`
417
+
-`repo-archive`
418
+
-`mirror`
419
+
-`pr_patch_checker`
420
+
421
+
Certain queues have defaults that override the defaults set in `[queue]` (this occurs mostly to support older configuration):
422
+
423
+
-`[queue.issue_indexer]`
424
+
-`TYPE` this will default to `[queue]``TYPE` if it is set but if not it will appropriately convert `[indexer]``ISSUE_INDEXER_QUEUE_TYPE` if that is set.
425
+
-`LENGTH` will default to `[indexer]``UPDATE_BUFFER_LEN` if that is set.
426
+
-`BATCH_LENGTH` will default to `[indexer]``ISSUE_INDEXER_QUEUE_BATCH_NUMBER` if that is set.
427
+
-`DATADIR` will default to `[indexer]``ISSUE_INDEXER_QUEUE_DIR` if that is set.
428
+
-`CONN_STR` will default to `[indexer]``ISSUE_INDEXER_QUEUE_CONN_STR` if that is set.
429
+
-`[queue.mailer]`
430
+
-`LENGTH` will default to **100** or whatever `[mailer]``SEND_BUFFER_LEN` is.
431
+
-`[queue.pr_patch_checker]`
432
+
-`LENGTH` will default to **1000** or whatever `[repository]``PULL_REQUEST_QUEUE_LENGTH` is.
433
+
-`[queue.mirror]`
434
+
-`LENGTH` will default to **1000** or whatever `[repository]``MIRROR_QUEUE_LENGTH` is.
435
+
403
436
## Admin (`admin`)
404
437
405
438
-`DEFAULT_EMAIL_NOTIFICATIONS`: **enabled**: Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled
@@ -588,7 +621,7 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
588
621
command or full path).
589
622
-`SENDMAIL_ARGS`: **_empty_**: Specify any extra sendmail arguments.
590
623
-`SENDMAIL_TIMEOUT`: **5m**: default timeout for sending email through sendmail
591
-
-`SEND_BUFFER_LEN`: **100**: Buffer length of mailing queue.
624
+
-`SEND_BUFFER_LEN`: **100**: Buffer length of mailing queue.**DEPRECATED** use `LENGTH` in `[queue.mailer]`
0 commit comments