{"action":"created","issue":{"url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/6","labels_url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/6/comments","events_url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/6/events","html_url":"https://github.com/topliceanu/schedule-drone/issues/6","id":65596464,"number":6,"title":"scheduleAndStore Saves the data but doesn't schedule CRON","user":{"login":"imomin","id":1074352,"avatar_url":"https://avatars.githubusercontent.com/u/1074352?v=3","gravatar_id":"","url":"https://api.github.com/users/imomin","html_url":"https://github.com/imomin","followers_url":"https://api.github.com/users/imomin/followers","following_url":"https://api.github.com/users/imomin/following{/other_user}","gists_url":"https://api.github.com/users/imomin/gists{/gist_id}","starred_url":"https://api.github.com/users/imomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imomin/subscriptions","organizations_url":"https://api.github.com/users/imomin/orgs","repos_url":"https://api.github.com/users/imomin/repos","events_url":"https://api.github.com/users/imomin/events{/privacy}","received_events_url":"https://api.github.com/users/imomin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/topliceanu/schedule-drone/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":{"login":"topliceanu","id":462588,"avatar_url":"https://avatars.githubusercontent.com/u/462588?v=3","gravatar_id":"","url":"https://api.github.com/users/topliceanu","html_url":"https://github.com/topliceanu","followers_url":"https://api.github.com/users/topliceanu/followers","following_url":"https://api.github.com/users/topliceanu/following{/other_user}","gists_url":"https://api.github.com/users/topliceanu/gists{/gist_id}","starred_url":"https://api.github.com/users/topliceanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topliceanu/subscriptions","organizations_url":"https://api.github.com/users/topliceanu/orgs","repos_url":"https://api.github.com/users/topliceanu/repos","events_url":"https://api.github.com/users/topliceanu/events{/privacy}","received_events_url":"https://api.github.com/users/topliceanu/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-01T03:28:34Z","updated_at":"2015-04-02T09:04:57Z","closed_at":"2015-04-02T09:03:02Z","body":"I am playing with your cron module.  I've noticed the scheduleAndStore saves the data in the database but it doesn't fire event. I don't know coffeescript but I think may be adding schedule(dataOrCronString, eventName, eventPayload) method on  line 68 should resolve the issue.\r\neg.\r\nstore.save data, (err, storedEvent) =>\r\n            if err callback err\r\n schedule '* * * * * 1', 'my-cron-event', params\r\n\r\nFollowing is the javascript equivalent.\r\n\r\nreturn store.save(data, function(err, storedEvent) {\r\n        if(err) return callback(err);\r\n          PersistentScheduler.__super__.schedule(timestamp, event, payload);\r\n          return callback(null, storedEvent);\r\n      });\r\n"},"comment":{"url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/comments/88835851","html_url":"https://github.com/topliceanu/schedule-drone/issues/6#issuecomment-88835851","issue_url":"https://api.github.com/repos/topliceanu/schedule-drone/issues/6","id":88835851,"user":{"login":"topliceanu","id":462588,"avatar_url":"https://avatars.githubusercontent.com/u/462588?v=3","gravatar_id":"","url":"https://api.github.com/users/topliceanu","html_url":"https://github.com/topliceanu","followers_url":"https://api.github.com/users/topliceanu/followers","following_url":"https://api.github.com/users/topliceanu/following{/other_user}","gists_url":"https://api.github.com/users/topliceanu/gists{/gist_id}","starred_url":"https://api.github.com/users/topliceanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topliceanu/subscriptions","organizations_url":"https://api.github.com/users/topliceanu/orgs","repos_url":"https://api.github.com/users/topliceanu/repos","events_url":"https://api.github.com/users/topliceanu/events{/privacy}","received_events_url":"https://api.github.com/users/topliceanu/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T09:04:57Z","updated_at":"2015-04-02T09:04:57Z","body":"The method `scheduleAndStore` is not in the public api and thus it should not be used. \r\nI'm not going to work on this anymore because I'm working on a rewrite of the module and I'm focusing on that. Please help out by suggesting an API which feels natural to you"}}