Skip to content

fix: support configured nextflow directories - #5298

Draft
ahdamin wants to merge 2 commits into
masterfrom
mammut-stage-prep
Draft

fix: support configured nextflow directories#5298
ahdamin wants to merge 2 commits into
masterfrom
mammut-stage-prep

Conversation

@ahdamin

@ahdamin ahdamin commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

This PR prepares cg for Mammut stage testing by allowing Nextflow workflows to use configured launch and work directories from cg-config.

The change is intentionally small and keeps the existing default behavior when these fields are not configured.

Changed

  • Add optional case_run_directory and work_dir fields to Nextflow workflow config models.
  • Use case_run_directory/<case_id> for generated Nextflow launch files when configured.
  • Use work_dir/<case_id> as the Seqera work directory when configured.
  • Preserve the existing fallback:
    • case run directory: root/<case_id>
    • work directory: root/<case_id>/work

Validation

  • pytest tests/services/analysis_starter/test_nextflow_configurator.py
  • ruff check
  • ruff format --check

@ahdamin ahdamin self-assigned this Sep 1, 2026
@ahdamin
ahdamin requested a review from a team as a code owner September 1, 2026 16:58
@ahdamin
ahdamin marked this pull request as draft September 1, 2026 16:58
@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

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.

1 participant