1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-08 15:18:26 -05:00
Commit graph

8677 commits

Author SHA1 Message Date
Andrew Thornton
90eeb1415a
Clean up documentation for queues 2020-01-04 17:23:24 +00:00
Andrew Thornton
c7550a4bdd
No redis host specified not found 2020-01-04 15:47:37 +00:00
Andrew Thornton
e4ddaab70b
Small changes as per @guillep2k 2020-01-04 15:44:28 +00:00
Andrew Thornton
1cb7a86e37
Add warning if number of workers < 0 2020-01-04 15:26:18 +00:00
Andrew Thornton
21b9778119
move unlocking out of setInternal 2020-01-04 15:12:43 +00:00
Andrew Thornton
e852cb620f
As per @guillep2k add mutex locks on shutdown/terminate 2020-01-04 14:59:39 +00:00
zeripath
9941ae2966
Update modules/queue/queue_redis.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-12-31 18:18:55 +00:00
Andrew Thornton
030b6d91c8
Remove dependency on queue from setting 2019-12-31 18:18:03 +00:00
Andrew Thornton
8798a61ba4
Cancel pool workers when removed 2019-12-31 17:48:26 +00:00
Andrew Thornton
6306cd42bc
Rename queue.Description to queue.ManagedQueue as per @guillep2k 2019-12-31 17:17:07 +00:00
zeripath
a10129f74c
Update modules/queue/queue_disk_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-12-31 12:33:33 +00:00
zeripath
402e4dfe96
Update modules/queue/queue_disk.go 2019-12-31 12:27:04 +00:00
zeripath
6c6d3eae76
Update modules/queue/queue_channel.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-12-31 12:17:18 +00:00
zeripath
632757bfa7
Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-12-31 12:16:39 +00:00
zeripath
a763ccada1
Update modules/indexer/issues/indexer.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-12-31 11:39:58 +00:00
Andrew Thornton
4d8b8ed02e
Merge branch 'master' into graceful-queues 2019-12-30 18:39:25 +00:00
Andrew Thornton
b1c9fa7f1a
Add MaxWorker settings to queues 2019-12-30 18:38:59 +00:00
Andrew Thornton
a492b3071c
Prevent deadlock during early shutdown of issue indexer 2019-12-30 18:38:58 +00:00
Andrew Thornton
1fb9104009
Queue: Allow Redis to connect to unix 2019-12-30 18:38:57 +00:00
Andrew Thornton
1013ced326
Fix test 2019-12-30 18:38:57 +00:00
Andrew Thornton
cc123c3448
Issues: Standardise the issues indexer queue settings 2019-12-30 18:38:56 +00:00
Andrew Thornton
4658b2f35e
Task: Move to generic queue and gracefulise 2019-12-30 18:38:56 +00:00
Andrew Thornton
d6b540475f
Issues: Gracefulise the issues indexer
Remove the old now unused specific queues
2019-12-30 18:38:55 +00:00
Andrew Thornton
9ad9070555
Queue: Improve logging 2019-12-30 18:38:54 +00:00
Andrew Thornton
2927bc6fe5
Queue: Add monitoring 2019-12-30 18:38:54 +00:00
Andrew Thornton
85d1a7f7d2
Queue: Add name variable to queues 2019-12-30 18:38:53 +00:00
Andrew Thornton
e6ebb47299
Queue: Make resizing worker pools 2019-12-30 18:38:52 +00:00
Andrew Thornton
0edb70a099
Queue: Add worker settings 2019-12-30 18:38:52 +00:00
Andrew Thornton
9fb051654a
Queue & Setting: Add worker pool implementation 2019-12-30 18:38:51 +00:00
Andrew Thornton
85042634fc
Queue: Add generic graceful queues with settings 2019-12-30 18:38:50 +00:00
GiteaBot
b983ff4473 [skip ci] Updated translations via Crowdin 2019-12-30 17:14:49 +00:00
zeripath
c2d854cfd2
In SimpleMDE check if trigger exists before call (#9545) 2019-12-30 17:11:50 +00:00
6543
d59536c222 [BugFix] use default avatar for ghost user (fix 500 error) (#9536)
* remove since it is there for 3years

* fix 500 error for ghost avatar

* dont insert "-1" in any case to issue.poster_id

* fix lint

* Test: ghost avatar link

* fix test

* Revert "remove since it is there for 3years"

This reverts commit fd9ad05159.

* Revert "dont insert "-1" in any case to issue.poster_id"

This reverts commit 05469ab6d8.

Co-authored-by: zeripath <art27@cantab.net>
2019-12-29 16:24:50 +02:00
GiteaBot
ae9d342f54 [skip ci] Updated translations via Crowdin 2019-12-29 12:34:39 +00:00
6543
98bc3e1da8 remove since it is there for 3years (#9538) 2019-12-29 12:32:31 +00:00
GiteaBot
a70e822100 [skip ci] Updated translations via Crowdin 2019-12-28 23:35:29 +00:00
6543
261c3a56a2 [Fix] Release attachment should use DownloadURL() not Name (#9529)
* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of  #6506 (fix was: #6512)
* use func DownloadURL() at issue attatchments too
2019-12-28 23:33:13 +00:00
6543
599c0ee75f go-mssqldb UPDATE (#9522) 2019-12-28 17:14:38 +00:00
Lunny Xiao
ed67bbe444 Fix repository issues pagination bug when there are more than one label filter (#9512) 2019-12-28 14:43:46 +00:00
techknowlogick
1ea447aedf Delete conflicting file (#9526)
Case collision with other jboss file

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2019-12-28 10:43:03 +00:00
Cornel
81e63d0714 Refactor webhooks to reduce code duplication (#9422)
* Start webhook refactoring to reduce code duplication

* More webhook refactoring

* Unify webhook release messages

* Fix webhook release link

* Remove sql import

* More webhook refactoring

* More webhook refactoring

* Webhook tests extended

* Fixed issue opened webhook

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
2019-12-28 08:55:09 +00:00
techknowlogick
10455a88dc
Resolve deprecated INI conversion (#9525)
Per 8fe474341f/deprecated.go (L24)
2019-12-27 22:37:26 -05:00
zeripath
55cd33e124 Stop various tests from adding to the source tree (#9515)
Instead of just adding test generated files to .gitignore prevent
them from being produced in the first place.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2019-12-28 10:08:05 +08:00
zeripath
884173232f Add contrib/environment-to-ini (#9519)
* Add contrib/environment-to-ini

This contrib command provides a mechanism to allow arbitrary setting
of ini values using the environment variable in a more docker standard
fashion.

Environment variable keys should be structured as:

"GITEA__SECTION_NAME__KEY_NAME"

Use of the command is explained in the README.

Partial fix for #350
Closes #7287

* Update contrib/environment-to-ini/environment-to-ini.go

Co-Authored-By: 6543 <6543@obermui.de>

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2019-12-28 08:49:42 +08:00
6543
4ee97465e9 [Fix] AllowedReaction code (#9518)
* optimize

* CI.restart()

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
2019-12-27 18:43:56 -05:00
zeripath
e64880ef07 Ignore empty avatars in v115.go (#9520)
* Ignore empty avatars

* fixup! Ignore empty avatars
2019-12-28 00:57:37 +02:00
zeripath
4acca9d2e8
Properly enforce gitea environment for pushes (#9501)
#8982 attempted to enforce the gitea environment for pushes - unfortunately it tested the settings before they were actually read in - and therefore does not do that!
2019-12-27 21:15:04 +00:00
6543
f2d03cda96 [API] Extend times API (#9200)
Extensively extend the times API.

close #8833; close #8513; close #8559
2019-12-27 20:30:58 +00:00
Lunny Xiao
0bcf644da4 Fix deleted branch isn't removed when push the branch again (#9516) 2019-12-27 19:17:37 +00:00
Masudur Rahman
e3a5b83212 Fix user avatar name (#8547)
Migrate avatar names to include user ID and the md5 hash.
2019-12-27 18:27:59 +00:00