{"action":"created","issue":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/4757","labels_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4757/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4757/comments","events_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4757/events","html_url":"https://github.com/dmwm/CRABServer/issues/4757","id":68049671,"number":4757,"title":"newest crabserver fails to resubmit due to TW failure","user":{"login":"juztas","id":646582,"avatar_url":"https://avatars.githubusercontent.com/u/646582?v=3","gravatar_id":"","url":"https://api.github.com/users/juztas","html_url":"https://github.com/juztas","followers_url":"https://api.github.com/users/juztas/followers","following_url":"https://api.github.com/users/juztas/following{/other_user}","gists_url":"https://api.github.com/users/juztas/gists{/gist_id}","starred_url":"https://api.github.com/users/juztas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juztas/subscriptions","organizations_url":"https://api.github.com/users/juztas/orgs","repos_url":"https://api.github.com/users/juztas/repos","events_url":"https://api.github.com/users/juztas/events{/privacy}","received_events_url":"https://api.github.com/users/juztas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dmwm/CRABServer/labels/Critical","name":"Critical","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"AndresTanasijczuk","id":6575844,"avatar_url":"https://avatars.githubusercontent.com/u/6575844?v=3","gravatar_id":"","url":"https://api.github.com/users/AndresTanasijczuk","html_url":"https://github.com/AndresTanasijczuk","followers_url":"https://api.github.com/users/AndresTanasijczuk/followers","following_url":"https://api.github.com/users/AndresTanasijczuk/following{/other_user}","gists_url":"https://api.github.com/users/AndresTanasijczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AndresTanasijczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndresTanasijczuk/subscriptions","organizations_url":"https://api.github.com/users/AndresTanasijczuk/orgs","repos_url":"https://api.github.com/users/AndresTanasijczuk/repos","events_url":"https://api.github.com/users/AndresTanasijczuk/events{/privacy}","received_events_url":"https://api.github.com/users/AndresTanasijczuk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dmwm/CRABServer/milestones/71","html_url":"https://github.com/dmwm/CRABServer/milestones/CRAB3%20May%202015","labels_url":"https://api.github.com/repos/dmwm/CRABServer/milestones/71/labels","id":1044712,"number":71,"title":"CRAB3 May 2015","description":"","creator":{"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},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2015-03-30T13:21:52Z","updated_at":"2015-04-13T10:29:49Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-04-13T09:12:57Z","updated_at":"2015-04-13T18:22:04Z","closed_at":null,"body":"I got exception in my own TW (TW failed to resubmit due to TW code problem), and my task on scheduler is on failed status. I tried to resubmit, and I suspect this should be available, but I get ExecutionError. \r\n```\r\n[13/Apr/2015:10:47:01]  SERVER REST ERROR WMCore.REST.Error.ExecutionError 97b4201dbcd401c29423f3dcd22d3e5e (Execution error)\r\n[13/Apr/2015:10:47:01]    Traceback (most recent call last):\r\n[13/Apr/2015:10:47:01]      File \"/data/user/WMCore/src/python/WMCore/REST/Server.py\", line 697, in default\r\n[13/Apr/2015:10:47:01]        return self._call(RESTArgs(list(args), kwargs))\r\n[13/Apr/2015:10:47:01]      File \"/data/user/WMCore/src/python/WMCore/REST/Server.py\", line 772, in _call\r\n[13/Apr/2015:10:47:01]        obj = apiobj['call'](*safe.args, **safe.kwargs)\r\n[13/Apr/2015:10:47:01]      File \"/data/user/WMCore/src/python/WMCore/REST/Server.py\", line 1730, in dbapi_wrapper\r\n[13/Apr/2015:10:47:01]        self._dberror(e, format_exc(), False)\r\n[13/Apr/2015:10:47:01]      File \"/data/user/WMCore/src/python/WMCore/REST/Server.py\", line 1728, in dbapi_wrapper\r\n[13/Apr/2015:10:47:01]        return handler(*xargs, **xkwargs)\r\n[13/Apr/2015:10:47:01]      File \"/data/user/CRABServer/src/python/CRABInterface/RESTUserWorkflow.py\", line 452, in post\r\n[13/Apr/2015:10:47:01]        userdn=cherrypy.request.headers['Cms-Authn-Dn'])\r\n[13/Apr/2015:10:47:01]      File \"/data/user/CRABServer/src/python/CRABInterface/DataUserWorkflow.py\", line 131, in resubmit\r\n[13/Apr/2015:10:47:01]        return self.workflow.resubmit(workflow, siteblacklist, sitewhitelist, jobids, maxjobruntime, numcores, maxmemory, priority, userdn, userproxy)\r\n[13/Apr/2015:10:47:01]      File \"/data/user/CRABServer/src/python/CRABInterface/DataWorkflow.py\", line 301, in resubmit\r\n[13/Apr/2015:10:47:01]        raise ExecutionError(msg)\r\n[13/Apr/2015:10:47:01]    ExecutionError\r\n```\r\n@AndresTanasijczuk can you check ?"},"comment":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/comments/92451251","html_url":"https://github.com/dmwm/CRABServer/issues/4757#issuecomment-92451251","issue_url":"https://api.github.com/repos/dmwm/CRABServer/issues/4757","id":92451251,"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-04-13T18:22:04Z","updated_at":"2015-04-13T18:22:04Z","body":"It all depends on what \"task in FAILED\" status exactly means.\r\nIf RESUBMIT failed because e.g. there is not job in such a status to be resubmitted,\r\nthe task should not be in FAILED status.\r\nHopefully task=FAILED is defined in a non-moving place and code can\r\ne.g. refer to this in the comments. We should make sure nobody needs to go through this discussion again two years from now.\r\n\r\nI would not remove that \"if\".\r\nPossibly because I really do not understand the logic there.\r\n"}}