sourcegraph/cmd/worker
Robert Lin 33a202691a
soap cleaner: guard all delete ops on whether the set is non-empty (#60798)
This is the fix for an issue @michaellzc reported in https://sourcegraph.slack.com/archives/C05DWT4ANHH/p1709240944860449 - when `db.UserExternalAccounts().Delete(...)` is called with an empty ID set (i.e. the cleanup heuristic finds nobody that needs to be demoted/deleted), the method interprets that as a request to delete _all_ SOAP users, which is definitely not what we want. This regression was introduced in https://github.com/sourcegraph/sourcegraph/pull/56866

## Test plan

A new test case courtesy of @michaellzc 

---------

Co-authored-by: Michael Lin <mlzc@hey.com>
2024-03-04 23:20:36 +00:00
..
internal soap cleaner: guard all delete ops on whether the set is non-empty (#60798) 2024-03-04 23:20:36 +00:00
job bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
shared Move repo perms syncer to worker (#59510) 2024-01-11 21:09:46 +01:00
BUILD.bazel bazel: use transitions to apply cross-compile platform automatically to oci_image (#60569) 2024-02-20 13:57:56 +00:00
CODENOTIFY codenotify: dr. fritz is kil (#57313) 2023-10-03 16:19:55 +00:00
image_test.yaml Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
main.go remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
README.md worker: Add docs (#21924) 2021-06-17 16:19:04 +00:00

Worker

The worker service is a collection of the background jobs performed by a Sourcegraph instance. Jobs registered to the worker will run periodically or in response to some event read from the database.