Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow output definition (2nd preview) not publishing #5658

Open
LDeakin opened this issue Jan 9, 2025 · 1 comment
Open

Workflow output definition (2nd preview) not publishing #5658

LDeakin opened this issue Jan 9, 2025 · 1 comment
Labels

Comments

@LDeakin
Copy link

LDeakin commented Jan 9, 2025

Bug report

I tried the second preview of workflow output definition with 24.10.3, but I can't seem to get it to publish anything.

Expected behavior and actual behavior

nextflow.preview.output = true // https://www.nextflow.io/docs/latest/workflow.html#publishing-outputs

process foo {
    output:
    path 'result.txt' // , emit: results

    script:
    """
    touch result.txt
    """
}

workflow {
    main:
    ch_foo = foo()

    publish:
    ch_foo >> 'foo'
}
nextflow run -output-dir results/ workflows/bug2.nf
 N E X T F L O W   ~  version 24.10.3

Launching `workflows/bug2.nf` [maniac_poisson] DSL2 - revision: 94997acd6d

WARN: WORKFLOW OUTPUT DSL IS A PREVIEW FEATURE - SYNTAX AND FUNCTIONALITY CAN CHANGE IN FUTURE RELEASES
executor >  local (1)
[8a/637329] foo [100%] 1 of 1 ✔

I would expect result.txt to appear under results/ somewhere, but results/ is not even created.

Environment

  • Nextflow version: 24.10.3
  • Java version: 17.0.2
  • Operating system: :Linux
  • Bash version: 4.4.20
@bentsherman
Copy link
Member

Possibly a duplicate of #5460 . Right now you have to include an empty output block for it to run (despite what the docs say).

There were a bunch of bugs with the second preview. Once #5502 is merged we will make a patch release for 24.10

@bentsherman bentsherman added the bug label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants