{"action":"opened","issue":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/5177","repository_url":"https://api.github.com/repos/dmwm/CRABServer","labels_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5177/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5177/comments","events_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5177/events","html_url":"https://github.com/dmwm/CRABServer/issues/5177","id":141293666,"number":5177,"title":"Add ABANDONED state for task automatically failed","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":0,"created_at":"2016-03-16T14:36:53Z","updated_at":"2016-03-16T14:36:53Z","closed_at":null,"body":"After a chat with @belforte in the context of the state machine refactoring (https://github.com/dmwm/CRABServer/pull/5175), we agreed it would be nicer to have a state `ABANDONED` for the tasks that are automatically failed at startup.\r\n\r\nThis has some impact in several places where we to things like `if state in ['A', 'B'] do this`. I believe we should take the chance and improve all of this perhaps creating a class `TaskStateMachine`."}}