fix: rename jobs to runs #238
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the job tracking system in the SNMP discovery policy codebase, replacing the concept of "jobs" with "runs" throughout the implementation and tests. The change standardizes terminology and updates all relevant data structures, methods, and test cases to use
Run/RunStoreinstead ofJob/JobStore. This improves clarity and consistency in how policy executions are tracked.Core Refactor: Jobs → Runs
JobStoreand related types and methods frompolicy/job.go, replacing them withRunStoreand associatedRuntypes.Manager,Runner, and related constructors to useRunStoreinstead ofJobStore, and changed all references from jobs to runs [1] [2] [3] [4].Runner.runto create, update, and track runs instead of jobs, including status updates and ingestion metadata [1] [2].Status and API Changes
Statusstruct and related methods inManagerto report runs instead of jobs, including renaming fields and updating status derivation logic.Test Suite Updates
policy/job_test.goto remove job-related tests and presumably migrate them to new run-related tests.runner_test.goto useRunStoreand validate run creation, status, and entity counts, ensuring all test logic aligns with the new terminology and data structures [1] [2] [3] [4] [5] [6] [7] [8] [9].