-
Notifications
You must be signed in to change notification settings - Fork 118
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
Conversation
// 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
This PR is stale because it has been in review for 3 days with no activity. |
Signed-off-by: Tengxiao Wang <[email protected]>
Signed-off-by: Tengxiao Wang <[email protected]>
Signed-off-by: Tengxiao Wang <[email protected]>
Signed-off-by: Tengxiao Wang <[email protected]>
Signed-off-by: Tengxiao Wang <[email protected]>
0f83f33
to
acd5a69
Compare
Signed-off-by: Tengxiao Wang <[email protected]>
Signed-off-by: Tengxiao Wang <[email protected]>
…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]>
* 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)
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 toDefragJob
for one-iteration-only defrag schedule.Added
last_update_time
toDefragNodeStatus
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.