{"action":"created","issue":{"url":"https://api.github.com/repos/ncb000gt/node-cron/issues/141","labels_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/141/comments","events_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/141/events","html_url":"https://github.com/ncb000gt/node-cron/issues/141","id":55922007,"number":141,"title":"Random hangs","user":{"login":"coldlamper","id":876528,"avatar_url":"https://avatars.githubusercontent.com/u/876528?v=3","gravatar_id":"","url":"https://api.github.com/users/coldlamper","html_url":"https://github.com/coldlamper","followers_url":"https://api.github.com/users/coldlamper/followers","following_url":"https://api.github.com/users/coldlamper/following{/other_user}","gists_url":"https://api.github.com/users/coldlamper/gists{/gist_id}","starred_url":"https://api.github.com/users/coldlamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldlamper/subscriptions","organizations_url":"https://api.github.com/users/coldlamper/orgs","repos_url":"https://api.github.com/users/coldlamper/repos","events_url":"https://api.github.com/users/coldlamper/events{/privacy}","received_events_url":"https://api.github.com/users/coldlamper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-29T16:30:20Z","updated_at":"2015-02-12T01:23:02Z","closed_at":null,"body":"After updating to 1.0.6, the cron will randomly hang and not fire. I have it set to run every second and at random times, hours in, it will just hang and the cron will not fire anymore.  It's hard to reproduce except waiting for a long period of time. Maybe you could possibly see a scenario in which that could happen.\r\n\r\n```\r\nvar cronJob = require('cron').CronJob;\r\nmoment = require('moment-timezone');\r\nvar count = 0;\r\n\r\nvar job = new cronJob('*/1 * * * * *', function () {\r\n\tcount++;\r\n\tconsole.log('Count: ' + count);\r\n\t\r\n        // read and write from redis \r\n});\r\n\r\njob.start();\r\n```\r\n\r\n\r\nIt will end up stuck on:\r\n...\r\nCount: 14565\r\nCount: 14566\r\nCount: 14567\r\n\r\nor similiar"},"comment":{"url":"https://api.github.com/repos/ncb000gt/node-cron/issues/comments/74000608","html_url":"https://github.com/ncb000gt/node-cron/issues/141#issuecomment-74000608","issue_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/141","id":74000608,"user":{"login":"ncb000gt","id":62615,"avatar_url":"https://avatars.githubusercontent.com/u/62615?v=3","gravatar_id":"","url":"https://api.github.com/users/ncb000gt","html_url":"https://github.com/ncb000gt","followers_url":"https://api.github.com/users/ncb000gt/followers","following_url":"https://api.github.com/users/ncb000gt/following{/other_user}","gists_url":"https://api.github.com/users/ncb000gt/gists{/gist_id}","starred_url":"https://api.github.com/users/ncb000gt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncb000gt/subscriptions","organizations_url":"https://api.github.com/users/ncb000gt/orgs","repos_url":"https://api.github.com/users/ncb000gt/repos","events_url":"https://api.github.com/users/ncb000gt/events{/privacy}","received_events_url":"https://api.github.com/users/ncb000gt/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T01:23:02Z","updated_at":"2015-02-12T01:23:02Z","body":"Does the incomplete function fire for any of you? Also, are any of you\nrunning the latest stable node?\nOn Feb 11, 2015 7:36 PM, \"keqinzhao\" <notifications@github.com> wrote:\n\n> I have the same problem. it will stop after run for about 16000 times.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ncb000gt/node-cron/issues/141#issuecomment-73995693>.\n>\n"}}