{"action":"created","issue":{"url":"https://api.github.com/repos/nvie/rq/issues/463","labels_url":"https://api.github.com/repos/nvie/rq/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/nvie/rq/issues/463/comments","events_url":"https://api.github.com/repos/nvie/rq/issues/463/events","html_url":"https://github.com/nvie/rq/pull/463","id":51454459,"number":463,"title":"Skip queue","user":{"login":"conslo","id":450860,"avatar_url":"https://avatars.githubusercontent.com/u/450860?v=3","gravatar_id":"","url":"https://api.github.com/users/conslo","html_url":"https://github.com/conslo","followers_url":"https://api.github.com/users/conslo/followers","following_url":"https://api.github.com/users/conslo/following{/other_user}","gists_url":"https://api.github.com/users/conslo/gists{/gist_id}","starred_url":"https://api.github.com/users/conslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conslo/subscriptions","organizations_url":"https://api.github.com/users/conslo/orgs","repos_url":"https://api.github.com/users/conslo/repos","events_url":"https://api.github.com/users/conslo/events{/privacy}","received_events_url":"https://api.github.com/users/conslo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-12-09T17:14:15Z","updated_at":"2015-01-05T16:39:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nvie/rq/pulls/463","html_url":"https://github.com/nvie/rq/pull/463","diff_url":"https://github.com/nvie/rq/pull/463.diff","patch_url":"https://github.com/nvie/rq/pull/463.patch"},"body":"You could view this as an alternative (and less-code) implementation of #452:\r\n\r\nI ran into a situation where it would be very advantageous to queue a specific job *now* (instead of the end of the queue). So I implemented a `skip_queue` option the the various `Queue.enqueue` methods, which does an lpush instead of an rpush.\r\n\r\nTo accomplish #452 with this you'd enqueue each job specifying `skip_queue=True`. A better way to do this might be changing the default for `skip_queue` from `False` to `None`, and having the lowest level method here (`Queue.push_job_id()`) pull a default from the `Queue` (which we could set at initialization, default `False`). If this is desired renaming the argument from `skip_queue` to something more like `fifo` would likely be a good idea.\r\n\r\nIf the maintainers think this is a good idea/approach I'd be happy to implement it as part of this PR."},"comment":{"url":"https://api.github.com/repos/nvie/rq/issues/comments/68734748","html_url":"https://github.com/nvie/rq/pull/463#issuecomment-68734748","issue_url":"https://api.github.com/repos/nvie/rq/issues/463","id":68734748,"user":{"login":"conslo","id":450860,"avatar_url":"https://avatars.githubusercontent.com/u/450860?v=3","gravatar_id":"","url":"https://api.github.com/users/conslo","html_url":"https://github.com/conslo","followers_url":"https://api.github.com/users/conslo/followers","following_url":"https://api.github.com/users/conslo/following{/other_user}","gists_url":"https://api.github.com/users/conslo/gists{/gist_id}","starred_url":"https://api.github.com/users/conslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conslo/subscriptions","organizations_url":"https://api.github.com/users/conslo/orgs","repos_url":"https://api.github.com/users/conslo/repos","events_url":"https://api.github.com/users/conslo/events{/privacy}","received_events_url":"https://api.github.com/users/conslo/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T16:39:47Z","updated_at":"2015-01-05T16:39:47Z","body":"Yay holidays! Back to this; you mean add to the gh-pages? Sure, I'll open a PR to add to that branch."}}