{"action":"opened","issue":{"url":"https://api.github.com/repos/caolan/async/issues/1338","repository_url":"https://api.github.com/repos/caolan/async","labels_url":"https://api.github.com/repos/caolan/async/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/caolan/async/issues/1338/comments","events_url":"https://api.github.com/repos/caolan/async/issues/1338/events","html_url":"https://github.com/caolan/async/issues/1338","id":193944237,"number":1338,"title":"Run task with condition","user":{"login":"dominhhai","id":1484298,"avatar_url":"https://avatars.githubusercontent.com/u/1484298?v=3","gravatar_id":"","url":"https://api.github.com/users/dominhhai","html_url":"https://github.com/dominhhai","followers_url":"https://api.github.com/users/dominhhai/followers","following_url":"https://api.github.com/users/dominhhai/following{/other_user}","gists_url":"https://api.github.com/users/dominhhai/gists{/gist_id}","starred_url":"https://api.github.com/users/dominhhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominhhai/subscriptions","organizations_url":"https://api.github.com/users/dominhhai/orgs","repos_url":"https://api.github.com/users/dominhhai/repos","events_url":"https://api.github.com/users/dominhhai/events{/privacy}","received_events_url":"https://api.github.com/users/dominhhai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T02:48:28Z","updated_at":"2016-12-07T02:48:28Z","closed_at":null,"body":"For some reasons it's nice if we can start run a task with specific condition.\r\n\r\nFor example: Using priority queue for running task with `time` priority. If we add new job with `time` before an other running tasks, this new job will wait until a running task finished. Oh, task `10:00:00` has to wait task `11:00:00`!\r\n\r\nIMO, 's not difficult and big break the current code, so should be added to the task flow. "}}
{"actor":{"display_login":"dominhhai"}}