{"action":"created","issue":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/4613","labels_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4613/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4613/comments","events_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4613/events","html_url":"https://github.com/dmwm/CRABServer/issues/4613","id":53755061,"number":4613,"title":"Report exit code in case of unexpected errors in postjob","user":{"login":"mmascher","id":1586246,"avatar_url":"https://avatars.githubusercontent.com/u/1586246?v=3","gravatar_id":"","url":"https://api.github.com/users/mmascher","html_url":"https://github.com/mmascher","followers_url":"https://api.github.com/users/mmascher/followers","following_url":"https://api.github.com/users/mmascher/following{/other_user}","gists_url":"https://api.github.com/users/mmascher/gists{/gist_id}","starred_url":"https://api.github.com/users/mmascher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmascher/subscriptions","organizations_url":"https://api.github.com/users/mmascher/orgs","repos_url":"https://api.github.com/users/mmascher/repos","events_url":"https://api.github.com/users/mmascher/events{/privacy}","received_events_url":"https://api.github.com/users/mmascher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-08T14:20:26Z","updated_at":"2015-01-08T14:38:03Z","closed_at":null,"body":"From: https://hypernews.cern.ch/HyperNews/CMS/get/crabDevelopment/2254.html\r\n\r\n>In general this should be considered as an \"internal error in the postjob script\", the code is going in this fallback \"except\" clause https://github.com/dmwm/CRABServer/blob/master/src/python/TaskWorker/Actions/PostJob.py#L1065-L1069, and the postjob should be retried. We should probably record the error in the fjr so that the crab status will show it when the last attempt is retried, and probably create an exit code for postjob failures.\r\n\r\n>That said, afaik glidemon is reporting the exit code of the jobs taken from condor, so I believe it is really difficult to get these exit code. Different story for the dashboard since we can send a packet there."},"comment":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/comments/69187015","html_url":"https://github.com/dmwm/CRABServer/issues/4613#issuecomment-69187015","issue_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4613","id":69187015,"user":{"login":"belforte","id":1837785,"avatar_url":"https://avatars.githubusercontent.com/u/1837785?v=3","gravatar_id":"","url":"https://api.github.com/users/belforte","html_url":"https://github.com/belforte","followers_url":"https://api.github.com/users/belforte/followers","following_url":"https://api.github.com/users/belforte/following{/other_user}","gists_url":"https://api.github.com/users/belforte/gists{/gist_id}","starred_url":"https://api.github.com/users/belforte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belforte/subscriptions","organizations_url":"https://api.github.com/users/belforte/orgs","repos_url":"https://api.github.com/users/belforte/repos","events_url":"https://api.github.com/users/belforte/events{/privacy}","received_events_url":"https://api.github.com/users/belforte/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T14:38:03Z","updated_at":"2015-01-08T14:38:03Z","body":"then it would be trivial for glidemon to set exit code in this case to some non zero value. Let's \nnot worry about it now, I am only saying that at some point it can easily be done w/o changing other \nthings.\n\nOn 01/08/2015 03:35 PM, Marco Mascheroni wrote:\n> Yes, I think glidemon read the states from the node_state file, but get the exit code from condor\n> (so only the jobwrapper exit code)"}}