{"action":"created","issue":{"url":"https://api.github.com/repos/dpla/automation/issues/148","labels_url":"https://api.github.com/repos/dpla/automation/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/dpla/automation/issues/148/comments","events_url":"https://api.github.com/repos/dpla/automation/issues/148/events","html_url":"https://github.com/dpla/automation/issues/148","id":129847618,"number":148,"title":"Fix delayed_job cleanup [\"pkill\", \"-9\", \"-f\", \"delayed_job\"]","user":{"login":"telezoic","id":444648,"avatar_url":"https://avatars.githubusercontent.com/u/444648?v=3","gravatar_id":"","url":"https://api.github.com/users/telezoic","html_url":"https://github.com/telezoic","followers_url":"https://api.github.com/users/telezoic/followers","following_url":"https://api.github.com/users/telezoic/following{/other_user}","gists_url":"https://api.github.com/users/telezoic/gists{/gist_id}","starred_url":"https://api.github.com/users/telezoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telezoic/subscriptions","organizations_url":"https://api.github.com/users/telezoic/orgs","repos_url":"https://api.github.com/users/telezoic/repos","events_url":"https://api.github.com/users/telezoic/events{/privacy}","received_events_url":"https://api.github.com/users/telezoic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-29T18:39:22Z","updated_at":"2016-01-29T19:59:17Z","closed_at":null,"body":"I've evened up my fork with the latest release, and re-installing on my local machine I get and error at he end of the invocations section in README-ingestion2.md:\r\n \r\n```$ ansible-playbook -i ingestion -u <your username in group_vars/all> \\\r\n  dev_ingestion_all.yml --extra-vars \"initial_run=true\"```\r\n\r\nThe error: \r\n```TASK [api : Stop obsolete delayed_job if it is running] ************************```\r\n```fatal: [dev1]: FAILED! => {\"changed\": true, \"cmd\": [\"pkill\", \"-9\", \"-f\", \"delayed_job\"], \"delta\": \"0:00:00.003681\", \"end\": \"2016-01-29 13:10:56.166660\" . . .  ```\r\n\r\nI try a ```vagrant reload``` to no effect. I'm hoping you could point me in the right direction to solving this.\r\n"},"comment":{"url":"https://api.github.com/repos/dpla/automation/issues/comments/176943568","html_url":"https://github.com/dpla/automation/issues/148#issuecomment-176943568","issue_url":"https://api.github.com/repos/dpla/automation/issues/148","id":176943568,"user":{"login":"markbreedlove","id":5550828,"avatar_url":"https://avatars.githubusercontent.com/u/5550828?v=3","gravatar_id":"","url":"https://api.github.com/users/markbreedlove","html_url":"https://github.com/markbreedlove","followers_url":"https://api.github.com/users/markbreedlove/followers","following_url":"https://api.github.com/users/markbreedlove/following{/other_user}","gists_url":"https://api.github.com/users/markbreedlove/gists{/gist_id}","starred_url":"https://api.github.com/users/markbreedlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbreedlove/subscriptions","organizations_url":"https://api.github.com/users/markbreedlove/orgs","repos_url":"https://api.github.com/users/markbreedlove/repos","events_url":"https://api.github.com/users/markbreedlove/events{/privacy}","received_events_url":"https://api.github.com/users/markbreedlove/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T19:59:17Z","updated_at":"2016-01-29T19:59:17Z","body":"This is probably the problem.  If a process is not running, `pkill` says \"Killed\" but returns nonzero. That's getting interpreted (rightly) as failure by ansible.\r\n```\r\nmb@dev1:~$ ps auxw | grep [d]elayed\r\nmb@dev1:~$ sudo pkill -9 -f delayed_job\r\nKilled\r\nmb@dev1:~$ echo $?\r\n137\r\n```\r\n\r\nI think it'll be safe to have the task ignore errors."}}