mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 13:38:43 +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. |
||
|---|---|---|
| .. | ||
| apple_mdm.go | ||
| apple_mdm_test.go | ||
| automation_failer.go | ||
| automation_failer_test.go | ||
| db_migrations.go | ||
| db_migrations_test.go | ||
| jira.go | ||
| jira_test.go | ||
| macos_setup_assistant.go | ||
| macos_setup_assistant_test.go | ||
| vpp_verification.go | ||
| worker.go | ||
| worker_test.go | ||
| zendesk.go | ||
| zendesk_test.go | ||