Skip to content

Fix cleanup context and add logging#782

Merged
emmanuelmaduwuba-lyft merged 1 commit intomainfrom
fix-cleanup-context-bug
Dec 10, 2025
Merged

Fix cleanup context and add logging#782
emmanuelmaduwuba-lyft merged 1 commit intomainfrom
fix-cleanup-context-bug

Conversation

@emmanuelmaduwuba-lyft
Copy link
Copy Markdown
Contributor

Bug fix:

  • Changed .Get(ctx, ...) to .Get(c, ...) in cleanup activity execution
  • The cleanup was using the parent workflow context (ctx) instead of the disconnected context (c), causing cleanup to fail when the parent workflow was cancelled

Logging:

  • Added info log when cleanup starts with deploy_directory
  • Added error log on cleanup failure with deploy_directory and error
  • Added info log on successful cleanup with deploy_directory

This should fix orphaned deployment directories accumulating on disk.

Bug fix:
- Changed .Get(ctx, ...) to .Get(c, ...) in cleanup activity execution
- The cleanup was using the parent workflow context (ctx) instead of the
  disconnected context (c), causing cleanup to fail when the parent
  workflow was cancelled

Logging:
- Added info log when cleanup starts with deploy_directory
- Added error log on cleanup failure with deploy_directory and error
- Added info log on successful cleanup with deploy_directory

This should fix orphaned deployment directories accumulating on disk.
@emmanuelmaduwuba-lyft emmanuelmaduwuba-lyft merged commit c12e0e9 into main Dec 10, 2025
3 checks passed
@emmanuelmaduwuba-lyft emmanuelmaduwuba-lyft deleted the fix-cleanup-context-bug branch December 10, 2025 15:03
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