nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat(tasks): scheduling tasks for a one-time run in future

Open elliotjarnit opened this issue 1 year ago โ€ข 6 comments

๐Ÿ”— 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.

elliotjarnit avatar Aug 02 '24 00:08 elliotjarnit

Still need to update documentation

elliotjarnit avatar Aug 02 '24 00:08 elliotjarnit

Ready for review. Documentation written too.

elliotjarnit avatar Aug 02 '24 01:08 elliotjarnit

Great idea/feature!

franklin-tina avatar Aug 03 '24 06:08 franklin-tina

Can this get a review?

elliotjarnit avatar Aug 16 '24 08:08 elliotjarnit

@pi0

elliotjarnit avatar Aug 22 '24 15:08 elliotjarnit

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 avatar Aug 22 '24 21:08 pi0

@pi0 Did you ever check this out?

elliotjarnit avatar Mar 20 '25 16:03 elliotjarnit