[management] Implement Job API with Validation, Persistence, and Bundle Job Support#4384
Closed
aliamerj wants to merge 1 commit intofeature/remote-debugfrom
Closed
[management] Implement Job API with Validation, Persistence, and Bundle Job Support#4384aliamerj wants to merge 1 commit intofeature/remote-debugfrom
aliamerj wants to merge 1 commit intofeature/remote-debugfrom
Conversation
pascal-fischer
requested changes
Aug 21, 2025
Contributor
Author
|
When using oneOf in
|
Contributor
Author
|
I’ve updated the way we handle workloads. Instead of using JSON blobs or
|
aliamerj
commented
Aug 29, 2025
|
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Describe your changes
Implemented the API for job operations, including creating new jobs, fetching jobs by peer, and fetching individual job details. Added support for
bundle/debugjobs with fully validated parameters (e.g.,bundle_for_time,log_file_count,anonymize) and ensured that pending jobs are handled correctly.Temporary permissions are based on the existing “delete peers” permission to allow job operations, with a TODO to implement a dedicated permission for creating and fetching jobs. Also added TODOs to integrate with the job channel once it is ready
All job data is persisted in the database, including account ID, peer ID, job type, status, parameters, and results. Jobs are validated before creation to prevent invalid payloads.
Issue ticket number and link
Stack
Checklist
Documentation
Select exactly one:
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
https://github.com/netbirdio/docs/pull/__