{"action":"created","issue":{"url":"https://api.github.com/repos/rschmukler/agenda/issues/329","repository_url":"https://api.github.com/repos/rschmukler/agenda","labels_url":"https://api.github.com/repos/rschmukler/agenda/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/rschmukler/agenda/issues/329/comments","events_url":"https://api.github.com/repos/rschmukler/agenda/issues/329/events","html_url":"https://github.com/rschmukler/agenda/issues/329","id":155078430,"number":329,"title":"Remove jobs by unique property","user":{"login":"jdnichollsc","id":2154886,"avatar_url":"https://avatars.githubusercontent.com/u/2154886?v=3","gravatar_id":"","url":"https://api.github.com/users/jdnichollsc","html_url":"https://github.com/jdnichollsc","followers_url":"https://api.github.com/users/jdnichollsc/followers","following_url":"https://api.github.com/users/jdnichollsc/following{/other_user}","gists_url":"https://api.github.com/users/jdnichollsc/gists{/gist_id}","starred_url":"https://api.github.com/users/jdnichollsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdnichollsc/subscriptions","organizations_url":"https://api.github.com/users/jdnichollsc/orgs","repos_url":"https://api.github.com/users/jdnichollsc/repos","events_url":"https://api.github.com/users/jdnichollsc/events{/privacy}","received_events_url":"https://api.github.com/users/jdnichollsc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-16T17:29:01Z","updated_at":"2016-05-27T14:15:22Z","closed_at":"2016-05-27T13:51:28Z","body":"Hi man,\r\n\r\nIs possible remove a job with a property? like jobId, userId, etc (unique property)\r\n\r\nThanks in advance, Nicholls"},"comment":{"url":"https://api.github.com/repos/rschmukler/agenda/issues/comments/222157527","html_url":"https://github.com/rschmukler/agenda/issues/329#issuecomment-222157527","issue_url":"https://api.github.com/repos/rschmukler/agenda/issues/329","id":222157527,"user":{"login":"jdnichollsc","id":2154886,"avatar_url":"https://avatars.githubusercontent.com/u/2154886?v=3","gravatar_id":"","url":"https://api.github.com/users/jdnichollsc","html_url":"https://github.com/jdnichollsc","followers_url":"https://api.github.com/users/jdnichollsc/followers","following_url":"https://api.github.com/users/jdnichollsc/following{/other_user}","gists_url":"https://api.github.com/users/jdnichollsc/gists{/gist_id}","starred_url":"https://api.github.com/users/jdnichollsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdnichollsc/subscriptions","organizations_url":"https://api.github.com/users/jdnichollsc/orgs","repos_url":"https://api.github.com/users/jdnichollsc/repos","events_url":"https://api.github.com/users/jdnichollsc/events{/privacy}","received_events_url":"https://api.github.com/users/jdnichollsc/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T14:15:22Z","updated_at":"2016-05-27T14:15:22Z","body":"Add the following example to README.md if you want:\r\n\r\n**To create**\r\n```\r\nvar job = agenda.create('myJob', { id: 123 });\r\njob.repeatEvery('cronFormathere');\r\njob.unique({ 'data.id': 123 });\r\njob.save();\r\n```\r\n\r\n**To remove**\r\n```\r\nagenda.jobs({'name': 'myJob', 'data.id': 123}, function(err, jobs) {\r\n    if(jobs[0]){\r\n        jobs[0].remove();\r\n    }\r\n});\r\n```\r\n\r\nRegards, Nicholls"}}
{"actor":{"display_login":"jdnichollsc"}}