{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25","id":47284056,"html_url":"https://github.com/JuliaParallel/ClusterManagers.jl/pull/25","diff_url":"https://github.com/JuliaParallel/ClusterManagers.jl/pull/25.diff","patch_url":"https://github.com/JuliaParallel/ClusterManagers.jl/pull/25.patch","issue_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/25","number":25,"state":"open","locked":false,"title":"String Interpolation and Immutable Errors","user":{"login":"gcamilo","id":3434853,"avatar_url":"https://avatars.githubusercontent.com/u/3434853?v=3","gravatar_id":"","url":"https://api.github.com/users/gcamilo","html_url":"https://github.com/gcamilo","followers_url":"https://api.github.com/users/gcamilo/followers","following_url":"https://api.github.com/users/gcamilo/following{/other_user}","gists_url":"https://api.github.com/users/gcamilo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcamilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcamilo/subscriptions","organizations_url":"https://api.github.com/users/gcamilo/orgs","repos_url":"https://api.github.com/users/gcamilo/repos","events_url":"https://api.github.com/users/gcamilo/events{/privacy}","received_events_url":"https://api.github.com/users/gcamilo/received_events","type":"User","site_admin":false},"body":"\r\nHi, I've been having problems with addprocs_sge as well. One of the things I've noticed is that in the launch function v0.4 release may have broken some other stuff apart from the AbstractString type declarations fixed in the last commit.  (I've run Pkg.checkout(ClusterManagers\"))\r\n\r\n1. When I run the addprocs_sge(n) An error is reported that the shell can't find the julia executable:\r\n```\r\njulia> ClusterManagers.addprocs_sge(35)\r\nWARNING: src::AbstractCmd |> dest::AbstractCmd is deprecated, use pipeline(src,dest) instead.\r\n in depwarn at deprecated.jl:73\r\n in |> at deprecated.jl:50\r\n in launch at /home/gcam/.julia/v0.4/ClusterManagers/src/qsub.jl:30\r\n in anonymous at task.jl:63\r\nwhile loading no file, in expression starting on line 0\r\nUnable to read script file because of error: error opening : No such file or directory\r\nbatch queue not available (could not run qsub)\r\n0-element Array{Int64,1}\r\n```\r\nI presume that in line 30 the interpolation in of both jobname and queue does not work as expected when pasting the command to launch julia on the worker nodes. Changing\r\n\r\n```\r\nif manager.queue == \"\"\r\n    queue = \"\"\r\nelse\r\n   queue = \"-q \" * manager.queue\r\nend\r\nnp = manager.np\r\njobname = \"julia-$(getpid())\"\r\ncmd = `cd $dir && $exename $exeflags`\r\nqsub_cmd = `echo $(Base.shell_escape(cmd))` |> (isPBS ? `qsub -N $jobname $queue -j oe -k o -t 1-$np` : `qsub -N $jobname $queue -terse -j y -t 1-$np`)\r\n``` \r\nTo\r\n\r\n```\r\nqsub_options = length(queue) > 0 ? [jobname queue] : jobname\r\n\t\r\ncmd = `cd $dir && $exename $exeflags`\r\nqsub_cmd = `echo $(Base.shell_escape(cmd))` |> (isPBS ? `qsub -N $jobname $queue -j oe -k o -t 1-$np` : `qsub -N $qsub_options -terse -j y -t 1-$np`)\r\n```\r\n\r\nThe problem is fixed (obviously not the deprecation warning)\r\n\r\n2. Afterwards, the problem is that we're trying to change the detach attribute of Cmd in line 50, but it's an immutable, so changing\r\n\r\n```\r\n            cmd = `tail -f $fname`\r\n            cmd.detach = true\r\n```\r\n\r\nTo\r\n\r\n```\r\n            cmd = Cmd(`tail -f $fname`,false,true, nothing, \"\")\r\n```\r\nFixes that.\r\n\r\n3. Finally in line 56, the WorkerConfig type does not have a line.buffered attribute, but the IO within it does, and is by default initialized to true, so commenting that out fixes everything. \r\n\r\n4. The launch command needed the --workers flag for it to work for me, so line 29\r\n\r\n```\r\ncmd = `cd $dir && $exename $exeflags`\r\n```","created_at":"2015-10-09T15:16:38Z","updated_at":"2015-10-09T15:16:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25/commits","review_comments_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25/comments","review_comment_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/25/comments","statuses_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/statuses/399bcb2df3e997a8c503e0a287ebdeaaeb7941fe","head":{"label":"gcamilo:pull-request/399bcb2d","ref":"pull-request/399bcb2d","sha":"399bcb2df3e997a8c503e0a287ebdeaaeb7941fe","user":{"login":"gcamilo","id":3434853,"avatar_url":"https://avatars.githubusercontent.com/u/3434853?v=3","gravatar_id":"","url":"https://api.github.com/users/gcamilo","html_url":"https://github.com/gcamilo","followers_url":"https://api.github.com/users/gcamilo/followers","following_url":"https://api.github.com/users/gcamilo/following{/other_user}","gists_url":"https://api.github.com/users/gcamilo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcamilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcamilo/subscriptions","organizations_url":"https://api.github.com/users/gcamilo/orgs","repos_url":"https://api.github.com/users/gcamilo/repos","events_url":"https://api.github.com/users/gcamilo/events{/privacy}","received_events_url":"https://api.github.com/users/gcamilo/received_events","type":"User","site_admin":false},"repo":{"id":43963174,"name":"ClusterManagers.jl","full_name":"gcamilo/ClusterManagers.jl","owner":{"login":"gcamilo","id":3434853,"avatar_url":"https://avatars.githubusercontent.com/u/3434853?v=3","gravatar_id":"","url":"https://api.github.com/users/gcamilo","html_url":"https://github.com/gcamilo","followers_url":"https://api.github.com/users/gcamilo/followers","following_url":"https://api.github.com/users/gcamilo/following{/other_user}","gists_url":"https://api.github.com/users/gcamilo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcamilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcamilo/subscriptions","organizations_url":"https://api.github.com/users/gcamilo/orgs","repos_url":"https://api.github.com/users/gcamilo/repos","events_url":"https://api.github.com/users/gcamilo/events{/privacy}","received_events_url":"https://api.github.com/users/gcamilo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gcamilo/ClusterManagers.jl","description":"","fork":true,"url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl","forks_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/forks","keys_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/teams","hooks_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/hooks","issue_events_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/issues/events{/number}","events_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/events","assignees_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/assignees{/user}","branches_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/branches{/branch}","tags_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/tags","blobs_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/languages","stargazers_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/stargazers","contributors_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/contributors","subscribers_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/subscribers","subscription_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/subscription","commits_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/contents/{+path}","compare_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/merges","archive_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/downloads","issues_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/issues{/number}","pulls_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/labels{/name}","releases_url":"https://api.github.com/repos/gcamilo/ClusterManagers.jl/releases{/id}","created_at":"2015-10-09T15:11:02Z","updated_at":"2015-10-09T15:11:03Z","pushed_at":"2015-10-09T15:14:27Z","git_url":"git://github.com/gcamilo/ClusterManagers.jl.git","ssh_url":"git@github.com:gcamilo/ClusterManagers.jl.git","clone_url":"https://github.com/gcamilo/ClusterManagers.jl.git","svn_url":"https://github.com/gcamilo/ClusterManagers.jl","homepage":null,"size":117,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaParallel:master","ref":"master","sha":"ee3469b2fbc7d0eeca638d9facf96d309cf07497","user":{"login":"JuliaParallel","id":10119367,"avatar_url":"https://avatars.githubusercontent.com/u/10119367?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaParallel","html_url":"https://github.com/JuliaParallel","followers_url":"https://api.github.com/users/JuliaParallel/followers","following_url":"https://api.github.com/users/JuliaParallel/following{/other_user}","gists_url":"https://api.github.com/users/JuliaParallel/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaParallel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaParallel/subscriptions","organizations_url":"https://api.github.com/users/JuliaParallel/orgs","repos_url":"https://api.github.com/users/JuliaParallel/repos","events_url":"https://api.github.com/users/JuliaParallel/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaParallel/received_events","type":"Organization","site_admin":false},"repo":{"id":11250727,"name":"ClusterManagers.jl","full_name":"JuliaParallel/ClusterManagers.jl","owner":{"login":"JuliaParallel","id":10119367,"avatar_url":"https://avatars.githubusercontent.com/u/10119367?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaParallel","html_url":"https://github.com/JuliaParallel","followers_url":"https://api.github.com/users/JuliaParallel/followers","following_url":"https://api.github.com/users/JuliaParallel/following{/other_user}","gists_url":"https://api.github.com/users/JuliaParallel/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaParallel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaParallel/subscriptions","organizations_url":"https://api.github.com/users/JuliaParallel/orgs","repos_url":"https://api.github.com/users/JuliaParallel/repos","events_url":"https://api.github.com/users/JuliaParallel/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaParallel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaParallel/ClusterManagers.jl","description":"","fork":false,"url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl","forks_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/forks","keys_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/teams","hooks_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/events","assignees_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/tags","blobs_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/subscription","commits_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/merges","archive_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/downloads","issues_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/releases{/id}","created_at":"2013-07-08T09:32:59Z","updated_at":"2015-10-09T14:51:41Z","pushed_at":"2015-09-24T12:10:33Z","git_url":"git://github.com/JuliaParallel/ClusterManagers.jl.git","ssh_url":"git@github.com:JuliaParallel/ClusterManagers.jl.git","clone_url":"https://github.com/JuliaParallel/ClusterManagers.jl.git","svn_url":"https://github.com/JuliaParallel/ClusterManagers.jl","homepage":null,"size":341,"stargazers_count":14,"watchers_count":14,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":8,"forks":10,"open_issues":8,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25"},"html":{"href":"https://github.com/JuliaParallel/ClusterManagers.jl/pull/25"},"issue":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/25"},"comments":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaParallel/ClusterManagers.jl/statuses/399bcb2df3e997a8c503e0a287ebdeaaeb7941fe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":6,"changed_files":1}}