Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the job-scheduler logic #87

Open
7 tasks
Tracked by #349
AlexRuiz7 opened this issue Oct 2, 2024 · 0 comments
Open
7 tasks
Tracked by #349

Implement the job-scheduler logic #87

AlexRuiz7 opened this issue Oct 2, 2024 · 0 comments
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Oct 2, 2024

Description

As part of the command manager plugin development and in continuation of #65, we are going to implement the job-scheduler logic to prioritize the commands and send them to the Wazuh Server's Management API.

Plan

  • Implement the Job Runner class.
  • Implement the Job Parameter class.
  • Implement the Job Runner logic.

Functional requirements

  • The job runner reads commands from the .commands index in PENDING status.
  • The job runner sorts the commands by the timeout field (lower timeout, higher priority).
  • The job runner sends the commands to the Management API (needs HTTP service implementation).*
  • The job runner logs each of its actions properly.
  • The job runner sends the commands to an external function for its processing. For the time being, we can just print these commands. Once the HTTP service implementation is completed, we can assemble both pieces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
Status: Backlog
Development

No branches or pull requests

1 participant