{"action":"created","issue":{"url":"https://api.github.com/repos/acquaman/acquaman/issues/2252","repository_url":"https://api.github.com/repos/acquaman/acquaman","labels_url":"https://api.github.com/repos/acquaman/acquaman/issues/2252/labels{/name}","comments_url":"https://api.github.com/repos/acquaman/acquaman/issues/2252/comments","events_url":"https://api.github.com/repos/acquaman/acquaman/issues/2252/events","html_url":"https://github.com/acquaman/acquaman/issues/2252","id":149873861,"number":2252,"title":"SXRMB: workflow stuck","user":{"login":"XuetaoLiu-CLS","id":8292610,"avatar_url":"https://avatars.githubusercontent.com/u/8292610?v=3","gravatar_id":"","url":"https://api.github.com/users/XuetaoLiu-CLS","html_url":"https://github.com/XuetaoLiu-CLS","followers_url":"https://api.github.com/users/XuetaoLiu-CLS/followers","following_url":"https://api.github.com/users/XuetaoLiu-CLS/following{/other_user}","gists_url":"https://api.github.com/users/XuetaoLiu-CLS/gists{/gist_id}","starred_url":"https://api.github.com/users/XuetaoLiu-CLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuetaoLiu-CLS/subscriptions","organizations_url":"https://api.github.com/users/XuetaoLiu-CLS/orgs","repos_url":"https://api.github.com/users/XuetaoLiu-CLS/repos","events_url":"https://api.github.com/users/XuetaoLiu-CLS/events{/privacy}","received_events_url":"https://api.github.com/users/XuetaoLiu-CLS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acquaman/acquaman/labels/Bug","name":"Bug","color":"ffb700"},{"url":"https://api.github.com/repos/acquaman/acquaman/labels/Framework","name":"Framework","color":"222266"},{"url":"https://api.github.com/repos/acquaman/acquaman/labels/Investigation%20Required","name":"Investigation Required","color":"010101"}],"state":"open","locked":false,"assignee":{"login":"XuetaoLiu-CLS","id":8292610,"avatar_url":"https://avatars.githubusercontent.com/u/8292610?v=3","gravatar_id":"","url":"https://api.github.com/users/XuetaoLiu-CLS","html_url":"https://github.com/XuetaoLiu-CLS","followers_url":"https://api.github.com/users/XuetaoLiu-CLS/followers","following_url":"https://api.github.com/users/XuetaoLiu-CLS/following{/other_user}","gists_url":"https://api.github.com/users/XuetaoLiu-CLS/gists{/gist_id}","starred_url":"https://api.github.com/users/XuetaoLiu-CLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuetaoLiu-CLS/subscriptions","organizations_url":"https://api.github.com/users/XuetaoLiu-CLS/orgs","repos_url":"https://api.github.com/users/XuetaoLiu-CLS/repos","events_url":"https://api.github.com/users/XuetaoLiu-CLS/events{/privacy}","received_events_url":"https://api.github.com/users/XuetaoLiu-CLS/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-20T20:16:30Z","updated_at":"2016-05-31T03:21:22Z","closed_at":null,"body":"This happened twice in SXRMB:\r\nThe current scan of a workflow is done (finished the last point and the scan is exported). But it won't run the next scan. Acquaman still shows the current scan is running."},"comment":{"url":"https://api.github.com/repos/acquaman/acquaman/issues/comments/222584199","html_url":"https://github.com/acquaman/acquaman/issues/2252#issuecomment-222584199","issue_url":"https://api.github.com/repos/acquaman/acquaman/issues/2252","id":222584199,"user":{"login":"XuetaoLiu-CLS","id":8292610,"avatar_url":"https://avatars.githubusercontent.com/u/8292610?v=3","gravatar_id":"","url":"https://api.github.com/users/XuetaoLiu-CLS","html_url":"https://github.com/XuetaoLiu-CLS","followers_url":"https://api.github.com/users/XuetaoLiu-CLS/followers","following_url":"https://api.github.com/users/XuetaoLiu-CLS/following{/other_user}","gists_url":"https://api.github.com/users/XuetaoLiu-CLS/gists{/gist_id}","starred_url":"https://api.github.com/users/XuetaoLiu-CLS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuetaoLiu-CLS/subscriptions","organizations_url":"https://api.github.com/users/XuetaoLiu-CLS/orgs","repos_url":"https://api.github.com/users/XuetaoLiu-CLS/repos","events_url":"https://api.github.com/users/XuetaoLiu-CLS/events{/privacy}","received_events_url":"https://api.github.com/users/XuetaoLiu-CLS/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T03:21:22Z","updated_at":"2016-05-31T03:21:22Z","body":"@dretrex \r\nI guess I know what happened this now, as a side product of #1628 .\r\n\r\nThe queue will be stuck when doing the following operations:\r\n1) pause the scan action from the scan action view, (this will pause the scan action runner)\r\n   (at this moment, however, the workflow doesn't know the scan action runner is paused, and still counting down. This is the real bug we should fix).\r\n2) pause the work flow, either on the workflow view or on the main bottom bar\r\n3) resume the scan from the scan action view, which will resume the scan action runner\r\n4) scan action runner will run all the remaining scans and finish. But the workflow will stuck there for ever and we can't even cancel it since the current scan action is NULL already (the scan action is finished).\r\n\r\n---- \r\n\r\nThe fixes:\r\n1) when scan action runner is paused/resumed, it should notify the workflow to pause/resume as well (as the workflow did. When we pause/resume workflow, the scan action runner will pause/resume as well)\r\n3) maybe in workflow, add a protection. When the scan action is finished (exported), it will try to clean the current action (??? not sure whether it is proper to do things like this or not)"}}
{"actor":{"display_login":"XuetaoLiu-CLS"}}