Skip to content

Fix context usage in executor#3223

Closed
matiasinsaurralde wants to merge 1 commit intodstackai:masterfrom
matiasinsaurralde:internal-executor-fixes
Closed

Fix context usage in executor#3223
matiasinsaurralde wants to merge 1 commit intodstackai:masterfrom
matiasinsaurralde:internal-executor-fixes

Conversation

@matiasinsaurralde
Copy link
Copy Markdown
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 <matias@insaurral.de>
Copy link
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Nov 11, 2025
@github-actions
Copy link
Copy Markdown

This PR was closed because it has been inactive for 7 days since being marked as stale. Please reopen the PR if it is still relevant.

@github-actions github-actions bot closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants