{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/kue/issues/785","labels_url":"https://api.github.com/repos/Automattic/kue/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/kue/issues/785/comments","events_url":"https://api.github.com/repos/Automattic/kue/issues/785/events","html_url":"https://github.com/Automattic/kue/issues/785","id":123578027,"number":785,"title":"Longer Delays","user":{"login":"j","id":589410,"avatar_url":"https://avatars.githubusercontent.com/u/589410?v=3","gravatar_id":"","url":"https://api.github.com/users/j","html_url":"https://github.com/j","followers_url":"https://api.github.com/users/j/followers","following_url":"https://api.github.com/users/j/following{/other_user}","gists_url":"https://api.github.com/users/j/gists{/gist_id}","starred_url":"https://api.github.com/users/j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j/subscriptions","organizations_url":"https://api.github.com/users/j/orgs","repos_url":"https://api.github.com/users/j/repos","events_url":"https://api.github.com/users/j/events{/privacy}","received_events_url":"https://api.github.com/users/j/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/kue/labels/Question","name":"Question","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T23:52:40Z","updated_at":"2015-12-28T21:31:45Z","closed_at":"2015-12-28T21:31:45Z","body":"So the documentation about delays say to pass in milliseconds and it creates times and processes up to 1000, etc, etc. Which doesn't sound too hot for a lot of delays scheduled further in the future.\r\n\r\nBasically, can I create longer delays?\r\n\r\nHere's my (example) use-case:\r\n\r\nFor every user that signs up, I'll create a delayed job to be processed in 30 minutes, I want to process certain things (i.e. pull updated info from 3rd party API), then re-schedule the same job for another 30 minutes later.  I'll do 30 minute intervals for the first 7 days, then I'll change the delay to, lets say, 1 full day after that.\r\n\r\nAn alternative to this type of use-case would be for every user sign up, create all the events to be processed in the future. 30 minutes from now, 1 hr, 1:30, 2:00, 2:30... (for a whole week), then switch to one a day after that for a whole week. (essentially creating around 343 scheduled future jobs for every user sign up right off the bat).\r\n\r\nCan Kue handle a large amount of delayed queues like this?"},"comment":{"url":"https://api.github.com/repos/Automattic/kue/issues/comments/167661859","html_url":"https://github.com/Automattic/kue/issues/785#issuecomment-167661859","issue_url":"https://api.github.com/repos/Automattic/kue/issues/785","id":167661859,"user":{"login":"behrad","id":2151889,"avatar_url":"https://avatars.githubusercontent.com/u/2151889?v=3","gravatar_id":"","url":"https://api.github.com/users/behrad","html_url":"https://github.com/behrad","followers_url":"https://api.github.com/users/behrad/followers","following_url":"https://api.github.com/users/behrad/following{/other_user}","gists_url":"https://api.github.com/users/behrad/gists{/gist_id}","starred_url":"https://api.github.com/users/behrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behrad/subscriptions","organizations_url":"https://api.github.com/users/behrad/orgs","repos_url":"https://api.github.com/users/behrad/repos","events_url":"https://api.github.com/users/behrad/events{/privacy}","received_events_url":"https://api.github.com/users/behrad/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T21:31:45Z","updated_at":"2015-12-28T21:31:45Z","body":"delay is implemented by a Redis ZSET and a promotion script which is run when a kue process is run, So there's no Javascript timer and delays will survive process restarts :)"}}