{"action":"created","issue":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/313","repository_url":"https://api.github.com/repos/node-schedule/node-schedule","labels_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/313/comments","events_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/313/events","html_url":"https://github.com/node-schedule/node-schedule/issues/313","id":192827877,"number":313,"title":"schedule.scheduledJobs ","user":{"login":"amnond","id":5184658,"avatar_url":"https://avatars.githubusercontent.com/u/5184658?v=3","gravatar_id":"","url":"https://api.github.com/users/amnond","html_url":"https://github.com/amnond","followers_url":"https://api.github.com/users/amnond/followers","following_url":"https://api.github.com/users/amnond/following{/other_user}","gists_url":"https://api.github.com/users/amnond/gists{/gist_id}","starred_url":"https://api.github.com/users/amnond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amnond/subscriptions","organizations_url":"https://api.github.com/users/amnond/orgs","repos_url":"https://api.github.com/users/amnond/repos","events_url":"https://api.github.com/users/amnond/events{/privacy}","received_events_url":"https://api.github.com/users/amnond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-01T12:02:30Z","updated_at":"2016-12-13T16:07:41Z","closed_at":null,"body":"The scheduledJobs member of node-schedule is not mentioned in the documentation and also has a problem if two schedules with identical titles are added:\r\n\r\n```\r\n\r\nvar schedule = require('node-schedule');\r\n\r\nvar rule = new schedule.RecurrenceRule();\r\nrule.second = 10;\r\n\r\nvar j1 = schedule.scheduleJob(\"sched1\", rule, function() { console.log(\"hi there 1\"); });\r\nvar j2 = schedule.scheduleJob(\"sched1\", rule, function() { console.log(\"hi there 2\"); });\r\n\r\nschedule.scheduledJobs['sched1'].cancel()  // j1 will continue to be invoked, but can't be accessed for cancelation\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/comments/266780281","html_url":"https://github.com/node-schedule/node-schedule/issues/313#issuecomment-266780281","issue_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/313","id":266780281,"user":{"login":"connorzg","id":21245363,"avatar_url":"https://avatars.githubusercontent.com/u/21245363?v=3","gravatar_id":"","url":"https://api.github.com/users/connorzg","html_url":"https://github.com/connorzg","followers_url":"https://api.github.com/users/connorzg/followers","following_url":"https://api.github.com/users/connorzg/following{/other_user}","gists_url":"https://api.github.com/users/connorzg/gists{/gist_id}","starred_url":"https://api.github.com/users/connorzg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorzg/subscriptions","organizations_url":"https://api.github.com/users/connorzg/orgs","repos_url":"https://api.github.com/users/connorzg/repos","events_url":"https://api.github.com/users/connorzg/events{/privacy}","received_events_url":"https://api.github.com/users/connorzg/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T16:07:41Z","updated_at":"2016-12-13T16:07:41Z","body":"Yep I've been able to run a lot of testing and ran into no issues. Thanks!"}}
{"actor":{"display_login":"connorzg"}}