New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quite Confusing Delay Schedule #3
Comments
Hey man - thanks for the interest. In the example that you used, it would be the same because there are no conflicting options. However, in this case, there year would become 2037. Jobs.add("sendReminderEmail", "john@smith.com", "The future is here!", {
on: {
days: 1,
hours: 13,
year: 2036
},
in: {
minute: 13,
year: 1
}
}); But in this one, it would be 2036: Jobs.add("sendReminderEmail", "john@smith.com", "The future is here!", {
in: {
minute: 13,
year: 1
},
on: {
days: 1,
hours: 13,
year: 2036
},
}); However, it maybe best to omit that part from the instructions. The thing is, I'm planning to enable functions as an input, so that's where it might get tricky: Jobs.add("sendReminderEmail", "john@smith.com", "The future is here!", {
in: {
minute: 13,
year: 1
},
on: {
days: 1,
hours: 13,
year: function () {
if (x) {
return 2037
}
}
},
}); |
Thanks! It's clear now. 👍 |
Hey, I think the package is no longer supported, but I haven't find anything better for this than using LaterJS. Supporting that may be a different package? |
@luixal not sure which package we are discussing - but maybe this is relevant: Going to close this ticket out as it seems old/resolved - but feel free to open a new one. |
Hi Max, good job!
But can you please elaborate on this?:
Do u mean that these jobs are not the same?
1
2
Didn't try this though but it confused me while reading the instructions.
Thanks in advance.
The text was updated successfully, but these errors were encountered: