1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/services/webhook
zeripath 787f6c3227
Ensure that Webhook tasks are not double delivered (#21558)
When re-retrieving hook tasks from the DB double check if they have not
been delivered in the meantime. Further ensure that tasks are marked as
delivered when they are being delivered.

In addition:
* Improve the error reporting and make sure that the webhook task
population script runs in a separate goroutine.
* Only get hook task IDs out of the DB instead of the whole task when
repopulating the queue
* When repopulating the queue make the DB request paged

Ref #17940 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-23 22:10:04 +08:00
..
deliver_test.go Ensure that Webhook tasks are not double delivered (#21558) 2022-11-23 22:10:04 +08:00
deliver.go Ensure that Webhook tasks are not double delivered (#21558) 2022-11-23 22:10:04 +08:00
dingtalk_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
dingtalk.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
discord_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
discord.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
feishu_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
feishu.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
general_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
general.go Fix webhook attachment text is not set in review comment (#21763) 2022-11-13 11:57:52 -05:00
main_test.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
matrix_test.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
matrix.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
msteams_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
msteams.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
packagist_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
packagist.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
payloader.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
slack_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
slack.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
telegram_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
telegram.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
webhook_test.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
webhook.go Ensure that Webhook tasks are not double delivered (#21558) 2022-11-23 22:10:04 +08:00
wechatwork.go Fix wechatwork webhook sends empty content in PR review (#21762) 2022-11-19 15:19:14 +00:00