{"action":"created","issue":{"url":"https://api.github.com/repos/phstc/shoryuken/issues/43","labels_url":"https://api.github.com/repos/phstc/shoryuken/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/phstc/shoryuken/issues/43/comments","events_url":"https://api.github.com/repos/phstc/shoryuken/issues/43/events","html_url":"https://github.com/phstc/shoryuken/issues/43","id":54334497,"number":43,"title":"ActiveJob adapter does not auto delete messages","user":{"login":"juggy","id":1108,"avatar_url":"https://avatars.githubusercontent.com/u/1108?v=3","gravatar_id":"","url":"https://api.github.com/users/juggy","html_url":"https://github.com/juggy","followers_url":"https://api.github.com/users/juggy/followers","following_url":"https://api.github.com/users/juggy/following{/other_user}","gists_url":"https://api.github.com/users/juggy/gists{/gist_id}","starred_url":"https://api.github.com/users/juggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juggy/subscriptions","organizations_url":"https://api.github.com/users/juggy/orgs","repos_url":"https://api.github.com/users/juggy/repos","events_url":"https://api.github.com/users/juggy/events{/privacy}","received_events_url":"https://api.github.com/users/juggy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-14T15:26:31Z","updated_at":"2015-01-14T15:37:40Z","closed_at":"2015-01-14T15:37:40Z","body":"I use the active job adapter and it seems that the messages are not deleted from the queue after completion. \r\n\r\nThe auto_delete option is set here, but for some reasons it does not work locally:\r\nhttps://github.com/phstc/shoryuken/blob/master/lib/shoryuken/extensions/active_job_adapter.rb#L55\r\n\r\nI do use \r\n```config.active_job.queue_name_prefix = Rails.application.secrets.APP_NAME```\r\n\r\nin the shoryuken.yml config:\r\n```\r\nqueues:\r\n  - [<%=Rails.application.secrets.APP_NAME + \"_default\"%>, 1]\r\n```\r\n\r\nand in the job itself:\r\n```queue_as :default```\r\n\r\n(I believe this last of should not have the prefix, otherwise what would the config be good for?)\r\n\r\nThanks,\r\nJulien."},"comment":{"url":"https://api.github.com/repos/phstc/shoryuken/issues/comments/69934379","html_url":"https://github.com/phstc/shoryuken/issues/43#issuecomment-69934379","issue_url":"https://api.github.com/repos/phstc/shoryuken/issues/43","id":69934379,"user":{"login":"juggy","id":1108,"avatar_url":"https://avatars.githubusercontent.com/u/1108?v=3","gravatar_id":"","url":"https://api.github.com/users/juggy","html_url":"https://github.com/juggy","followers_url":"https://api.github.com/users/juggy/followers","following_url":"https://api.github.com/users/juggy/following{/other_user}","gists_url":"https://api.github.com/users/juggy/gists{/gist_id}","starred_url":"https://api.github.com/users/juggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juggy/subscriptions","organizations_url":"https://api.github.com/users/juggy/orgs","repos_url":"https://api.github.com/users/juggy/repos","events_url":"https://api.github.com/users/juggy/events{/privacy}","received_events_url":"https://api.github.com/users/juggy/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T15:37:40Z","updated_at":"2015-01-14T15:37:40Z","body":"My bad I was enqueing on save and was saving within the worker. Nevermind."}}