{"action":"opened","issue":{"url":"https://api.github.com/repos/Automattic/kue/issues/695","labels_url":"https://api.github.com/repos/Automattic/kue/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/kue/issues/695/comments","events_url":"https://api.github.com/repos/Automattic/kue/issues/695/events","html_url":"https://github.com/Automattic/kue/issues/695","id":100655684,"number":695,"title":"TTL failure does not trigger .on(\"failed\",...) event","user":{"login":"yan7109","id":6434237,"avatar_url":"https://avatars.githubusercontent.com/u/6434237?v=3","gravatar_id":"","url":"https://api.github.com/users/yan7109","html_url":"https://github.com/yan7109","followers_url":"https://api.github.com/users/yan7109/followers","following_url":"https://api.github.com/users/yan7109/following{/other_user}","gists_url":"https://api.github.com/users/yan7109/gists{/gist_id}","starred_url":"https://api.github.com/users/yan7109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan7109/subscriptions","organizations_url":"https://api.github.com/users/yan7109/orgs","repos_url":"https://api.github.com/users/yan7109/repos","events_url":"https://api.github.com/users/yan7109/events{/privacy}","received_events_url":"https://api.github.com/users/yan7109/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T23:19:54Z","updated_at":"2015-08-12T23:19:54Z","closed_at":null,"body":"I have a fairly simple excerpt below (using 0.9.4):\r\n\r\n```\r\nvar job = queue.create('test_job', {title: 'test_job1'}).ttl(5000).save().removeOnComplete(true).on(\"complete\", function(){\r\nconsole.log(\"success\");\r\n}).on(\"failed\", function(){\r\nconsole.log(\"failed\");\r\n});\r\n```\r\n\r\nFor some reason, after 5 seconds, even though express shows the job as TTL failed, the console never prints \"failed\". It would always proceed until completion. Any ideas why? \r\n\r\nThanks!"}}