Skip to content

Fix cache command to use SysEnv for cloudcache path check#6432

Merged
pditommaso merged 1 commit intomasterfrom
fix-cache-command-logs
Sep 26, 2025
Merged

Fix cache command to use SysEnv for cloudcache path check#6432
pditommaso merged 1 commit intomasterfrom
fix-cache-command-logs

Conversation

@pditommaso
Copy link
Member

Summary

  • Fix cache command to use SysEnv.get('NXF_CLOUDCACHE_PATH') instead of session.cloudCachePath
  • Add debug logging to distinguish between CacheManager and LogsHandler usage paths
  • Improves handling when command is used via Seqera Platform

Changes

  • Use SysEnv.get('NXF_CLOUDCACHE_PATH') for environment variable check
  • Add debug logs to show which backup method is being used
  • Add explanatory comment about why direct env var access is used

Context

The session.cloudCachePath requires initialization via CmdRun execution, but this command is primarily used by Seqera Platform which provides the cache path via environment variable. Using SysEnv directly avoids the initialization dependency.

🤖 Generated with Claude Code

- Use SysEnv.get('NXF_CLOUDCACHE_PATH') instead of session.cloudCachePath
- Add debug logging to distinguish between CacheManager and LogsHandler usage
- Improves handling when command is used via Seqera Platform

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit c3967dc
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68d6c7a4dc00b4000936efac

@pditommaso pditommaso merged commit 771b8b6 into master Sep 26, 2025
30 checks passed
@pditommaso pditommaso deleted the fix-cache-command-logs branch September 26, 2025 17:46
pditommaso added a commit that referenced this pull request Oct 6, 2025
- Use SysEnv.get('NXF_CLOUDCACHE_PATH') instead of session.cloudCachePath
- Add debug logging to distinguish between CacheManager and LogsHandler usage
- Improves handling when command is used via Seqera Platform

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants