-
Notifications
You must be signed in to change notification settings - Fork 44
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
Delay a job on startup #795
Merged
Trojaner
merged 5 commits into
openmod:main
from
IlyaSergeevich0:feature/startup-job-delay
Nov 17, 2023
Merged
Delay a job on startup #795
Trojaner
merged 5 commits into
openmod:main
from
IlyaSergeevich0:feature/startup-job-delay
Nov 17, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Trojaner after second thought, should I implement same behavior for |
Sounds like a good idea |
Works fine on standalone Jobs config: jobs:
- name: OpenMod Auto Update
args:
commands:
- openmod upgrade
task: openmod_command
schedule: 0 0 * * 0
enabled: true
- name: Delay startup command
args:
commands:
- test_startup_command
task: openmod_command
schedule: '@startup:5s'
enabled: true
- name: Delay reboot command
args:
commands:
- test_reboot_command
task: openmod_command
schedule: '@reboot:5s'
enabled: true
- name: Delay single execution command
args:
commands:
- test_single_exec_command
task: openmod_command
schedule: '@single_exec:5s'
enabled: true Log before Log after |
Thank you for your contribution. |
Can you document this in the docs as well? |
Sure, I'll create a new PR for this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #435
Used
TimeSpanHelper
to parse delay.Feature works fine on standalone.