~bigbes/core-go

ref: 32f482812bf9c3688bfc1c2df423db8a4777f34c core-go/webhooks/legacy_test.go -rw-r--r-- 3.3 KiB
e22c3e1c — Conrad Hoffmann 9 months ago
Fix a bunch of linter complaints
6eae2199 — Drew DeVault 1 year, 7 months ago
auth: use config.IsInternalIP
7457c44b — Robin Jarry 1 year, 8 months ago
treewide: update to new multi worker dowork api

The work.Queue() implementation has changed and now allows scheduling
tasks from multiple goroutines in parallel. Also, it requires a new
argument for limiting the queue buffer size in order to apply back
pressure.

Define new configuration variables to allow tuning the queue sizes and
number of workers per service:

  [mail]
  # Maximum size of the outgoing email queue (default 512).
  egress-queue-size = 512

  [$service_name]
  # Number of parallel workers per queue (default 1).
  # There are multiple queues (for egress email, webhooks, etc.).
  # This setting is applied on a per-queue basis.
  queue-workers = 1

  [webhooks]
  # Maximum size of the webhooks queue (default 512).
  queue-size = 512

Use these new settings to configure the queues and workers accordingly.

Fix unit tests as well.

Link: https://git.sr.ht/~sircmpwn/dowork/commit/95719cfc0118
Signed-off-by: Robin Jarry <robin@jarry.cc>
3b553750 — Drew DeVault 4 years ago
webhooks: fix failing test
f44afb10 — Simon Ser 4 years ago
go fmt
33562018 — Drew DeVault 5 years ago
database.WithTx: rollback if func returns error

Previously, this only rolled back if the called function panicked. This
updates it to also roll back if the called function returns an error.
910a8619 — Drew DeVault 5 years ago
webhooks/legacy_test: verify headers are recorded
da1a806e — Drew DeVault 5 years ago
webhooks/legacy: address Postgres-specific issues
6d45601d — Drew DeVault 5 years ago
webhooks/legacy_test.go: style
03619ed2 — Drew DeVault 5 years ago
webhooks/legacy: update only affected delivery

Forgot to add this where clause, whoops!
af2afebd — Drew DeVault 5 years ago
Add legacy webhooks worker implementation