{"action":"closed","issue":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/157","labels_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/157/comments","events_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/157/events","html_url":"https://github.com/node-schedule/node-schedule/issues/157","id":85878349,"number":157,"title":"Scheduling jobs in the past","user":{"login":"santigimeno","id":1084056,"avatar_url":"https://avatars.githubusercontent.com/u/1084056?v=3","gravatar_id":"","url":"https://api.github.com/users/santigimeno","html_url":"https://github.com/santigimeno","followers_url":"https://api.github.com/users/santigimeno/followers","following_url":"https://api.github.com/users/santigimeno/following{/other_user}","gists_url":"https://api.github.com/users/santigimeno/gists{/gist_id}","starred_url":"https://api.github.com/users/santigimeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santigimeno/subscriptions","organizations_url":"https://api.github.com/users/santigimeno/orgs","repos_url":"https://api.github.com/users/santigimeno/repos","events_url":"https://api.github.com/users/santigimeno/events{/privacy}","received_events_url":"https://api.github.com/users/santigimeno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/node-schedule/node-schedule/labels/question","name":"question","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-07T09:03:00Z","updated_at":"2016-02-01T21:14:49Z","closed_at":"2016-02-01T21:14:49Z","body":"Before releasing `1.0.0` I would like to discuss if we should change the behavior when scheduling jobs in the past. The current behavior is that the job gets executed immediately.\r\n\r\nMy position is that we should not allow scheduling a job in the past, and that if somebody wants to execute something immediately, should just *execute* the task right away, without using `node-schedule`.\r\n\r\n@davisford raised some valid points for keeping the functionality as it is. See: https://github.com/tejasmanohar/node-schedule/issues/151 for the discussion\r\n\r\ncc/ @tejasmanohar @jonhester "}}