Skip to content

Conversation

gapra-msft
Copy link
Member

@gapra-msft gapra-msft commented Sep 3, 2025

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

return r.jobID
}

func (r *resumeProgressTracker) GetElapsedTime() time.Duration {
Copy link
Member Author

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

todo remainder

Copy link
Member Author

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.",
Copy link
Member

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
Copy link
Member

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
Copy link
Member

@dphulkar-msft dphulkar-msft Sep 11, 2025

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?

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
library AzCopy as a Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants