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

Add generic schedule structure; add fields for defrag schedule #2408

Merged
merged 8 commits into from
Mar 4, 2024

Conversation

twang-ps
Copy link
Contributor

What this PR does / why we need it:
This PR added a generic Schedule proto message. It defines a schedule with start time, max duration, and the tasks to run.
Also added schedule_one_iteration_only field to DefragJob for one-iteration-only defrag schedule.
Added last_update_time to DefragNodeStatus

Which issue(s) this PR fixes (optional)
Closes #
or
PWX-

Testing Notes
Add testing output or passing unit test output here.

Special notes for your reviewer:
Add any notes for the reviewer here.

// MaxDurationHours defines the time limit of one run in hours
double max_duration_hours = 3;
// Type is the type of job to run
Job.Type type = 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Job.Type not part of Job that is repeated below?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is intended to be a Schedule Type lets use that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's intended to denote the schedule type. And it should be one of the Job.Type.

Copy link

github-actions bot commented Feb 6, 2024

This PR is stale because it has been in review for 3 days with no activity.

@twang-ps twang-ps merged commit 5aaf214 into libopenstorage:master Mar 4, 2024
2 checks passed
twang-ps added a commit to twang-ps/openstorage that referenced this pull request Jul 9, 2024
…enstorage#2408)

* Add generic Schedule data structure

* Add last_update_time to DefragNodeStatus

* Add schedule_one_iteration_only to DefragJob

(cherry picked from commit 5aaf214)
Signed-off-by: Tengxiao Wang <[email protected]>
twang-ps added a commit that referenced this pull request Jul 10, 2024
* Add a new type of Job: DefragJob (#2375)
(cherry picked from commit 759bca7)

* Add defrag status data structures (#2385)
(cherry picked from commit def904a)

* Add generic schedule structure; add fields for defrag schedule (#2408)
(cherry picked from commit 5aaf214)

* Add server and APIs for defrag and schedule services (#2426)
(cherry picked from commit e80fd7f)

* Change OpenStorageSchedule API parameter type to string (#2454)
(cherry picked from commit e4b050e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants