{"action":"opened","issue":{"url":"https://api.github.com/repos/rschmukler/agenda/issues/191","labels_url":"https://api.github.com/repos/rschmukler/agenda/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/rschmukler/agenda/issues/191/comments","events_url":"https://api.github.com/repos/rschmukler/agenda/issues/191/events","html_url":"https://github.com/rschmukler/agenda/issues/191","id":103952028,"number":191,"title":"job running with wrong data","user":{"login":"spruce","id":709002,"avatar_url":"https://avatars.githubusercontent.com/u/709002?v=3","gravatar_id":"","url":"https://api.github.com/users/spruce","html_url":"https://github.com/spruce","followers_url":"https://api.github.com/users/spruce/followers","following_url":"https://api.github.com/users/spruce/following{/other_user}","gists_url":"https://api.github.com/users/spruce/gists{/gist_id}","starred_url":"https://api.github.com/users/spruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spruce/subscriptions","organizations_url":"https://api.github.com/users/spruce/orgs","repos_url":"https://api.github.com/users/spruce/repos","events_url":"https://api.github.com/users/spruce/events{/privacy}","received_events_url":"https://api.github.com/users/spruce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-30T21:28:40Z","updated_at":"2015-08-30T21:28:40Z","closed_at":null,"body":"Hello,\r\nusing agenda in nearly every project. Thanks for writing it.\r\n\r\nMy problem is that I have the correct things written to the DB by my web processes, but the job worker don't work correctly. I'm sending some mail via background processes.\r\n\r\nin agendaJobs\r\n```\r\n{ \"_id\" : ObjectId(\"55e2fd9ecb53efae723824bc\"), \"name\" : \"email:paid\", \"data\" : { \"ID\" : ObjectId(\"55e2fd74470b2faa72dd6757\") }, \"type\" : \"normal\", \"priority\" : 0, \"nextRunAt\" : null, \"lastModifiedBy\" : null, \"lockedAt\" : null, \"lastRunAt\" : ISODate(\"2015-08-30T12:57:06.290Z\") }\r\n{ \"_id\" : ObjectId(\"55e2fd4365dc91aa72836e3d\"), \"name\" : \"email:paid\", \"data\" : { \"ID\" : ObjectId(\"55e2fcfb1f3961ae729f2a98\") }, \"type\" : \"normal\", \"priority\" : 0, \"nextRunAt\" : null, \"lastModifiedBy\" : null, \"lockedAt\" : null, \"lastRunAt\" : ISODate(\"2015-08-30T12:55:32.136Z\") }\r\n```\r\nas one can see the processes are run at different times with different data. But my logs say it tried to send some mail to the same email adresse:\r\n```\r\n[30.8.15 14:55:34:63] [LOG] sending mail to redacted1@provider.com\r\n[30.8.15 14:57:06:79] [LOG] sending mail to redacted1@provider.com\r\n```\r\nI made sure that the IDs stated in data are in fact two different email adresses in fact they are\r\n```\r\nredacted1@provider.com \r\nredacted2@provider.de\r\n```\r\n\r\nMight this be a problem with multiple job processes? Can you look into that? @rschmukler "}}