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, params are null in workflow.onComplete handler #5445

Closed
PikalaxALT opened this issue Oct 29, 2024 · 2 comments
Closed

workflow, params are null in workflow.onComplete handler #5445

PikalaxALT opened this issue Oct 29, 2024 · 2 comments

Comments

@PikalaxALT
Copy link

Bug report

(Please follow this template replacing the text between parentheses with the requested information)

Expected behavior and actual behavior

workflow and params should be defined and not null inside the workflow.onComplete closure. instead both are null.

Steps to reproduce the problem

process SAY_HELLO {
  input:
    val greeting
  output:
    eval("echo $greeting, world")
  script:
    """
    sleep 1
    """
}

workflow {
  Channel.of("Hello", "Hallo", "Hola", "Bonjour")
  | SAY_HELLO
  | view

  workflow.onComplete {
    println "workflow is null: ${workflow == null ? 'yes' : 'no'}"
    println "params is null: ${params == null ? 'yes' : 'no'}"
  }
}

Program output

Hello
Hola
Bonjour
Hallo
workflow is null: yes
params is null: yes

Environment

  • Nextflow version: 24.10.0
  • Java version: OpenJDK 17.0.1+12-39
  • Operating system: Linux
  • Bash version: 4.2.46(2)-release (x86_64-linux-gnu)

Additional context

Unable to share log files due to company data protection policy.

@bentsherman
Copy link
Member

Duplicate of #5261 , see that issue for some temporary workarounds

@PikalaxALT
Copy link
Author

Closing for reason: Duplicate.

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

No branches or pull requests

2 participants