{"action":"created","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/728","repository_url":"https://api.github.com/repos/nextflow-io/nextflow","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/728/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/728/events","html_url":"https://github.com/nextflow-io/nextflow/issues/728","id":329864153,"node_id":"MDU6SXNzdWUzMjk4NjQxNTM=","number":728,"title":"withLabel parameters not being applied to process, but not in all cases. ","user":{"login":"mahesh-panchal","id":15652539,"node_id":"MDQ6VXNlcjE1NjUyNTM5","avatar_url":"https://avatars0.githubusercontent.com/u/15652539?v=4","gravatar_id":"","url":"https://api.github.com/users/mahesh-panchal","html_url":"https://github.com/mahesh-panchal","followers_url":"https://api.github.com/users/mahesh-panchal/followers","following_url":"https://api.github.com/users/mahesh-panchal/following{/other_user}","gists_url":"https://api.github.com/users/mahesh-panchal/gists{/gist_id}","starred_url":"https://api.github.com/users/mahesh-panchal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahesh-panchal/subscriptions","organizations_url":"https://api.github.com/users/mahesh-panchal/orgs","repos_url":"https://api.github.com/users/mahesh-panchal/repos","events_url":"https://api.github.com/users/mahesh-panchal/events{/privacy}","received_events_url":"https://api.github.com/users/mahesh-panchal/received_events","type":"User","site_admin":false},"labels":[{"id":33572980,"node_id":"MDU6TGFiZWwzMzU3Mjk4MA==","url":"https://api.github.com/repos/nextflow-io/nextflow/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":921277905,"node_id":"MDU6TGFiZWw5MjEyNzc5MDU=","url":"https://api.github.com/repos/nextflow-io/nextflow/labels/pri/moderate","name":"pri/moderate","color":"fff83f","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-06T13:19:19Z","updated_at":"2018-06-08T10:20:51Z","closed_at":"2018-06-08T10:20:51Z","author_association":"NONE","body":"Hi, \r\n\r\nI have a config file that has these properties.\r\n```\r\nprocess {\r\n   shell = ['/bin/bash', '-euo', 'pipefail']\r\n   cpus = 8\r\n   withLabel:single_core {\r\n      cpus = 1\r\n   }\r\n   executor = 'slurm'\r\n   scratch = '$SNIC_TMP'\r\n   clusterOptions = rackham$_run_closure1$_closure4@62010f5c\r\n   withLabel:big_mem {\r\n      cpus = rackham$_run_closure1$_closure5$_closure6@51fadaff\r\n      clusterOptions = rackham$_run_closure1$_closure5$_closure7@401f7633\r\n   }\r\n}\r\n```\r\nwhere those run-time properties are defined as:\r\n```\r\nclusterOptions = { \"-A $params.project ${params.clusterOptions ?: ''}\" }\r\nwithLabel: big_mem {\r\n    cpus = { ${params.max_cpus} }\r\n    clusterOptions = { \"-p node -C fat ${params.clusterOptions ?: ''}\" }\r\n}\r\n```\r\n\r\nmy issue is that any process with the label 'single_core' works as expected, but the process with 'big_mem' does not evaluate the closure and apply it. Could you help me understand why please?\r\nProcesses with the label big_mem still use 8 cores and do not include the additional cluster options."},"comment":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/comments/395718614","html_url":"https://github.com/nextflow-io/nextflow/issues/728#issuecomment-395718614","issue_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/728","id":395718614,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTcxODYxNA==","user":{"login":"pditommaso","id":816968,"node_id":"MDQ6VXNlcjgxNjk2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/816968?v=4","gravatar_id":"","url":"https://api.github.com/users/pditommaso","html_url":"https://github.com/pditommaso","followers_url":"https://api.github.com/users/pditommaso/followers","following_url":"https://api.github.com/users/pditommaso/following{/other_user}","gists_url":"https://api.github.com/users/pditommaso/gists{/gist_id}","starred_url":"https://api.github.com/users/pditommaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pditommaso/subscriptions","organizations_url":"https://api.github.com/users/pditommaso/orgs","repos_url":"https://api.github.com/users/pditommaso/repos","events_url":"https://api.github.com/users/pditommaso/events{/privacy}","received_events_url":"https://api.github.com/users/pditommaso/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T10:20:51Z","updated_at":"2018-06-08T10:20:51Z","author_association":"MEMBER","body":"I'm closing this in favour of #729 #733 #730. Thanks a lot for reporting this problem."}}
{"actor":{"display_login":"pditommaso"}}