Skip to content

Conversation

@matiasinsaurralde
Copy link
Contributor

Sharing this small improvement - As we're already using context in setupRepo and execJob it makes sense to properly pass the context to the other functions.

Signed-off-by: Matías Insaurralde <[email protected]>
Copy link
Collaborator

@r4victor r4victor left a comment

Choose a reason for hiding this comment

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

Overall passing context seems like an improvement but I have concerns about this particular case with moveDir. Suppose context is cancelled while restoreRepoDir – then cp could restore files only partially. This is problematic if repo is stored on a volume.

I think restoreRepoDir shouldn't be cancelled with the run context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants