{"action":"opened","issue":{"url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/28","labels_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/28/comments","events_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/28/events","html_url":"https://github.com/LewisJEllis/bee-queue/issues/28","id":121399302,"number":28,"title":"Question on `removeOnSuccess`","user":{"login":"davisford","id":186677,"avatar_url":"https://avatars.githubusercontent.com/u/186677?v=3","gravatar_id":"","url":"https://api.github.com/users/davisford","html_url":"https://github.com/davisford","followers_url":"https://api.github.com/users/davisford/followers","following_url":"https://api.github.com/users/davisford/following{/other_user}","gists_url":"https://api.github.com/users/davisford/gists{/gist_id}","starred_url":"https://api.github.com/users/davisford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisford/subscriptions","organizations_url":"https://api.github.com/users/davisford/orgs","repos_url":"https://api.github.com/users/davisford/repos","events_url":"https://api.github.com/users/davisford/events{/privacy}","received_events_url":"https://api.github.com/users/davisford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T04:17:03Z","updated_at":"2015-12-10T04:17:03Z","closed_at":null,"body":"If I have a producer and a consumer for a queue, let's say I set it up as follows:\r\n\r\n`producer`\r\n\r\n```javascript\r\nvar producerQueue = new Queue('foo', {\r\n  isWorker: false,\r\n  removeOnSuccess: true\r\n};\r\n```\r\n\r\n`consumer`\r\n\r\n```javascript\r\nvar consumerQueue = new Queue('foo', {\r\n  isWorker: true\r\n};\r\n```\r\n\r\nI've noticed that when I configure it this way, after a job completes, and I check Redis, even though a job has finished successfully, the job data still exists.  The docs aren't clear with respect to the `removeOnSuccess` prop -- does it need to be set on the producer queue or the consumer queue, or both?\r\n\r\n"}}