Skip to content

Exiting python process leaves Nextflow running #9

@bmyers-ozette

Description

@bmyers-ozette

We have a workflow that allows a user to cancel their running Nextflow job from our Python application which is using the nextflowpy library. However, we have noticed that despite the Python process exiting, Nextflow continues to run.

I had a couple thoughts for possible solutions:

  1. Return the PID of the nextflow process in the Execution object, allowing us to handle the process termination.
  2. Handle process termination within nextflowpy so that catches the exit signal and ensure the Nextflow process is also terminated, keeping all process management encapsulated within the library.

Would love to hear your thoughts on this or if there's an existing approach we might have missed. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions