{"action":"closed","issue":{"url":"https://api.github.com/repos/MikeDacre/fyrd/issues/62","repository_url":"https://api.github.com/repos/MikeDacre/fyrd","labels_url":"https://api.github.com/repos/MikeDacre/fyrd/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/MikeDacre/fyrd/issues/62/comments","events_url":"https://api.github.com/repos/MikeDacre/fyrd/issues/62/events","html_url":"https://github.com/MikeDacre/fyrd/issues/62","id":192422992,"number":62,"title":"torque script PBS directive error","user":{"login":"ircwaves","id":9936909,"avatar_url":"https://avatars.githubusercontent.com/u/9936909?v=3","gravatar_id":"","url":"https://api.github.com/users/ircwaves","html_url":"https://github.com/ircwaves","followers_url":"https://api.github.com/users/ircwaves/followers","following_url":"https://api.github.com/users/ircwaves/following{/other_user}","gists_url":"https://api.github.com/users/ircwaves/gists{/gist_id}","starred_url":"https://api.github.com/users/ircwaves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ircwaves/subscriptions","organizations_url":"https://api.github.com/users/ircwaves/orgs","repos_url":"https://api.github.com/users/ircwaves/repos","events_url":"https://api.github.com/users/ircwaves/events{/privacy}","received_events_url":"https://api.github.com/users/ircwaves/received_events","type":"User","site_admin":false},"labels":[{"id":298548658,"url":"https://api.github.com/repos/MikeDacre/fyrd/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"MikeDacre","id":77714,"avatar_url":"https://avatars.githubusercontent.com/u/77714?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeDacre","html_url":"https://github.com/MikeDacre","followers_url":"https://api.github.com/users/MikeDacre/followers","following_url":"https://api.github.com/users/MikeDacre/following{/other_user}","gists_url":"https://api.github.com/users/MikeDacre/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeDacre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeDacre/subscriptions","organizations_url":"https://api.github.com/users/MikeDacre/orgs","repos_url":"https://api.github.com/users/MikeDacre/repos","events_url":"https://api.github.com/users/MikeDacre/events{/privacy}","received_events_url":"https://api.github.com/users/MikeDacre/received_events","type":"User","site_admin":false},"assignees":[{"login":"MikeDacre","id":77714,"avatar_url":"https://avatars.githubusercontent.com/u/77714?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeDacre","html_url":"https://github.com/MikeDacre","followers_url":"https://api.github.com/users/MikeDacre/followers","following_url":"https://api.github.com/users/MikeDacre/following{/other_user}","gists_url":"https://api.github.com/users/MikeDacre/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeDacre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeDacre/subscriptions","organizations_url":"https://api.github.com/users/MikeDacre/orgs","repos_url":"https://api.github.com/users/MikeDacre/repos","events_url":"https://api.github.com/users/MikeDacre/events{/privacy}","received_events_url":"https://api.github.com/users/MikeDacre/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-29T22:40:19Z","updated_at":"2016-12-02T01:35:01Z","closed_at":"2016-12-02T01:35:00Z","body":"Interesting project.  In doing a quick test-drive, I've hit a PBS directive error.  It might be a config error or even a torque version mismatch, but `fyrd.get_cluster_environment()` does return `'torque'`.  `mem` gets the complaint, but I believe `walltime` also needs to be prefixed by `-l ` in the job script.\r\n\r\n```\r\n>>> j = fyrd.Job('ls ', ['.'])\r\n>>> j.submit()\r\n20161129 17:28:48.344 | WARNING --> Command qsub /home/icooke/ls.0.1493c48f.cluster.qsub failed with code 1, retrying.\r\n20161129 17:28:49.348 | WARNING --> Command qsub /home/icooke/ls.0.1493c48f.cluster.qsub failed with code 1, retrying.\r\n20161129 17:28:50.352 | WARNING --> Command qsub /home/icooke/ls.0.1493c48f.cluster.qsub failed with code 1, retrying.\r\n20161129 17:28:51.359 | WARNING --> Command qsub /home/icooke/ls.0.1493c48f.cluster.qsub failed with code 1, retrying.\r\n20161129 17:28:52.364 | CRITICAL --> qsub failed with code 1\r\n-----------------------------------> stdout: \r\n-----------------------------------> stderr: qsub: directive error: mem=4000MB\r\n```\r\nAnd the script file\r\n```\r\n$ cat /home/icooke/ls.0.1493c48f.cluster.qsub\r\n#!/bin/bash\r\n#PBS -l nodes=1:ppn=1\r\n#PBS mem=4000MB\r\n#PBS -q myqueue\r\n#PBS -e /home/icooke/ls.0.1493c48f.cluster.err\r\n#PBS -o /home/icooke/ls.0.1493c48f.cluster.out\r\n#PBS walltime=04:00:00\r\nmkdir -p $LOCAL_SCRATCH > /dev/null 2>/dev/null\r\ncd /home/icooke\r\ndate +'%y-%m-%d-%H:%M:%S'\r\necho \"Running ls.0.1493c48f\"\r\nls .\r\nexitcode=$?\r\necho Done\r\ndate +'%y-%m-%d-%H:%M:%S'\r\nif [[ $exitcode != 0 ]]; then\r\n    echo Exited with code: $exitcode >&2\r\nfi\r\n\r\n```\r\n"}}
{"actor":{"display_login":"MikeDacre"}}