feat(tasks): scheduling tasks for a one-time run in future
๐ Linked issue
#1974
โ Type of change
- [x] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [x] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Provides new functionality to runTask() command, allowing specification of a runAt or runAfter option.
runAt option will delay the running of the task until the Date object (or equivalent string) has passed
runAfter option has the same functionality, except delaying x seconds after the function has been run
๐ Checklist
- [x] I have linked an issue or discussion.
- [x] I have updated the documentation accordingly.
Still need to update documentation
Ready for review. Documentation written too.
Great idea/feature!
Can this get a review?
@pi0
Thanks for the PR dear @elliotjarnit, it looks promising but i have to do more research specially to make sure it will be compatible with different providers.
@pi0 Did you ever check this out?