-
Notifications
You must be signed in to change notification settings - Fork 246
Added supoprt for jobs resume progress tracking in library #3203
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
base: gapra/refactorLCM
Are you sure you want to change the base?
Conversation
return r.jobID | ||
} | ||
|
||
func (r *resumeProgressTracker) GetElapsedTime() time.Duration { |
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.
TODO: I should probably keep a variable for elapsed time that gets set once jobDone is true in CheckProgress. That way Elapsed time is a true measure of when the job ended.
@@ -0,0 +1,233 @@ | |||
package azcopy |
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.
msft licensing missing
} | ||
} | ||
|
||
// TODO : rename interface method to OnError to match other methods |
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.
todo remainder
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.
This todo is not critical right now, and I want to limit changes to files - so we can do this after sync and copy are done
j.handler.Info("Cancellation requested. Beginning clean shutdown...") | ||
if !reporter.CompletedEnumeration() { | ||
answer := j.handler.Prompt("The enumeration (source only for copy, source/destination comparison for sync) is not complete, "+ | ||
"cancelling the job at this point means it cannot be resumed.", |
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.
Should we mention jobID here?
@@ -0,0 +1,12 @@ | |||
package common |
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.
msft licensing missing
Number of Folder Transfers Skipped: %v | ||
Total Number of Bytes Transferred: %v | ||
Percent Complete (approx): %.1f | ||
Final Job Status: %v |
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.
Thought: We are currently repeating the string line:445-458 across multiple jobs. Instead of duplicating it, can we define it once as a variable and reuse it wherever needed?
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.
I'll add an item to clean up this code for after the library refactor
Use new job progress tracking logic. Copy and sync will also move to using this progress tracker eventually, so we can remove it from the glcm code.
See this for design of job lifecycle manager
https://msazure.visualstudio.com/One/_wiki/wikis/One.wiki/846803/JobLifecycleManager