{"action":"created","issue":{"url":"https://api.github.com/repos/OSC/ood_job/issues/5","repository_url":"https://api.github.com/repos/OSC/ood_job","labels_url":"https://api.github.com/repos/OSC/ood_job/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/OSC/ood_job/issues/5/comments","events_url":"https://api.github.com/repos/OSC/ood_job/issues/5/events","html_url":"https://github.com/OSC/ood_job/issues/5","id":197882441,"number":5,"title":"Add default_job_script to Adapter","user":{"login":"ericfranz","id":512333,"avatar_url":"https://avatars.githubusercontent.com/u/512333?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfranz","html_url":"https://github.com/ericfranz","followers_url":"https://api.github.com/users/ericfranz/followers","following_url":"https://api.github.com/users/ericfranz/following{/other_user}","gists_url":"https://api.github.com/users/ericfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfranz/subscriptions","organizations_url":"https://api.github.com/users/ericfranz/orgs","repos_url":"https://api.github.com/users/ericfranz/repos","events_url":"https://api.github.com/users/ericfranz/events{/privacy}","received_events_url":"https://api.github.com/users/ericfranz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-28T16:47:29Z","updated_at":"2016-12-29T20:40:33Z","closed_at":"2016-12-28T19:12:33Z","body":"```ruby\r\nattr_accessor :default_job_script\r\n```\r\n\r\nThis would let me instantate an Adapter subclass such as:\r\n\r\n```ruby\r\nOodJob::Adapter::Torque.new(mycluster, default_job_script)\r\n```\r\n\r\nWhen submitting a job, if default_job_script is provided, this script would be merged in with the script that was passed in via `submit`."},"comment":{"url":"https://api.github.com/repos/OSC/ood_job/issues/comments/269690162","html_url":"https://github.com/OSC/ood_job/issues/5#issuecomment-269690162","issue_url":"https://api.github.com/repos/OSC/ood_job/issues/5","id":269690162,"user":{"login":"ericfranz","id":512333,"avatar_url":"https://avatars.githubusercontent.com/u/512333?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfranz","html_url":"https://github.com/ericfranz","followers_url":"https://api.github.com/users/ericfranz/followers","following_url":"https://api.github.com/users/ericfranz/following{/other_user}","gists_url":"https://api.github.com/users/ericfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfranz/subscriptions","organizations_url":"https://api.github.com/users/ericfranz/orgs","repos_url":"https://api.github.com/users/ericfranz/repos","events_url":"https://api.github.com/users/ericfranz/events{/privacy}","received_events_url":"https://api.github.com/users/ericfranz/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T20:40:33Z","updated_at":"2016-12-29T20:40:33Z","body":"Reopening this. This discussion is relevant and related to #6.\r\n\r\nThe issue that is OSC specific is setting the account string to the primary project of the user.  This is essentially an example of having some ruby code that is OSC specific that produces default values to be used in every job script that is submitted through an OOD app at OSC.\r\n\r\nA related problem: we have talked about users being part of multiple projects, and being able to choose which project to submit jobs as. In this case, we probably need a different solution than setting a value globally; unless we have an OOD-wide user config that the user can modify.\r\n\r\nOther attributes that would be nice to set defaults for: number of nodes and ppn "}}
{"actor":{"display_login":"ericfranz"}}