{"action":"opened","issue":{"url":"https://api.github.com/repos/StackStorm/st2/issues/2797","repository_url":"https://api.github.com/repos/StackStorm/st2","labels_url":"https://api.github.com/repos/StackStorm/st2/issues/2797/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/2797/comments","events_url":"https://api.github.com/repos/StackStorm/st2/issues/2797/events","html_url":"https://github.com/StackStorm/st2/issues/2797","id":164395544,"number":2797,"title":"Delayed actions processed in wrong order","user":{"login":"bri365","id":15804005,"avatar_url":"https://avatars.githubusercontent.com/u/15804005?v=3","gravatar_id":"","url":"https://api.github.com/users/bri365","html_url":"https://github.com/bri365","followers_url":"https://api.github.com/users/bri365/followers","following_url":"https://api.github.com/users/bri365/following{/other_user}","gists_url":"https://api.github.com/users/bri365/gists{/gist_id}","starred_url":"https://api.github.com/users/bri365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bri365/subscriptions","organizations_url":"https://api.github.com/users/bri365/orgs","repos_url":"https://api.github.com/users/bri365/repos","events_url":"https://api.github.com/users/bri365/events{/privacy}","received_events_url":"https://api.github.com/users/bri365/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-07T20:07:00Z","updated_at":"2016-07-07T20:07:00Z","closed_at":null,"body":"When actions are delayed for policy concurrency (and concurrency.attr), they appear to be retried in newest to oldest order, rather than oldest to newest.  The file attached is a trimmed down actionrunner log showing delayed actions and their subsequent dispatch.  When multiple actions are delayed, they appear to be dispatched in the opposite order intended.\r\n\r\n[2600.txt](https://github.com/StackStorm/st2/files/352933/2600.txt)\r\n\r\nst2actions/policy/concurrency.py:88 and concurrency_by_attr.py:115 both include order_by['start_timestamp'], but does not indicate ascending or descending.\r\n\r\n"}}
{"actor":{"display_login":"bri365"}}