{"action":"opened","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/172","repository_url":"https://api.github.com/repos/nextflow-io/nextflow","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/172/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/172/events","html_url":"https://github.com/nextflow-io/nextflow/issues/172","id":158713708,"number":172,"title":"other processes not killed when pipeline fails","user":{"login":"huguesfontenelle","id":6872108,"avatar_url":"https://avatars.githubusercontent.com/u/6872108?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesfontenelle","html_url":"https://github.com/huguesfontenelle","followers_url":"https://api.github.com/users/huguesfontenelle/followers","following_url":"https://api.github.com/users/huguesfontenelle/following{/other_user}","gists_url":"https://api.github.com/users/huguesfontenelle/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesfontenelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesfontenelle/subscriptions","organizations_url":"https://api.github.com/users/huguesfontenelle/orgs","repos_url":"https://api.github.com/users/huguesfontenelle/repos","events_url":"https://api.github.com/users/huguesfontenelle/events{/privacy}","received_events_url":"https://api.github.com/users/huguesfontenelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-06T16:02:03Z","updated_at":"2016-06-06T16:02:03Z","closed_at":null,"body":"A short script should reproduce the \"problem\":\r\n```\r\nch = Channel.from(1, 2, 3)\r\n(chone, chtwo) = ch.into(2)\r\n\r\nprocess fail {\r\n    input:\r\n    val(no) from chone\r\n\r\n\"\"\"\r\nawk -v min=1 -v max=5 'BEGIN{srand(); print int(min+rand()*(max-min+1))}' | xargs sleep\r\nsmurf\r\n\"\"\"\r\n}\r\n\r\nprocess success {\r\n    input:\r\n    val(no) from chtwo\r\n\r\n\"\"\"\r\nsleep 1h\r\n\"\"\"\r\n}\r\n```\r\n\r\nThe pipeline fails because the `smurf` command does not exist.\r\nHowever the `sleep 1h` keeps running in the background, taking valuable resources!\r\n> granted, in this particular example this is minimal ;-)\r\n\r\nAny workaround?\r\n"}}
{"actor":{"display_login":"huguesfontenelle"}}