mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
for #31518 # Details This PR updates the jobs package with a new `GetFilteredQueuedJobs` method which accepts a list of job names to return from the `jobs` table, rather than returning all jobs matching the other criteria. It also updates the `worker` package to use this new method instead of `GetQueuedJobs`. The purpose of this update is to allow us to add multiple workers which process different kinds of jobs, while sharing the same `jobs` table and framework. I chose to add the new `GetFilteredQueuedJobs` method rather than updating `GetQueuedJobs` because the latter is used in a bunch of tests that would need to be updated. `GetQueuedJobs` now calls `GetFilteredQueuedJobs` with an empty list, which is interpreted as "return all jobs". # Checklist for submitter ## Testing - [X] Added/updated automated tests - [ ] QA'd all new/changed functionality manually There shouldn't be any functional change here, but if someone has a Jira or Zendesk integration set up to easily test with, that'd be good. |
||
|---|---|---|
| .. | ||
| digicert | ||
| mdm | ||
| mockimpl | ||
| mockresult | ||
| nanodep | ||
| scep | ||
| software | ||
| datastore.go | ||
| datastore_installers.go | ||
| datastore_mock.go | ||
| datastore_users_helpers.go | ||
| errors.go | ||