Added --stop-at-time and --stop-days arguments #1006
Merged
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.
This PR introduces two new arguments to the command line interface for nexrender-worker:
--stop-at-time: This parameter allows users to specify a certain local time when the worker will terminate. An example usage would be --stop-at-time=5:00, which will stop the worker at 5 am local time.
--stop-days: This parameter works in conjunction with the --stop-at-time parameter and allows to specify on which weekdays the worker should terminate. The days are represented as numbers where 0 is Sunday and 6 is Saturday. For instance, --stop-days=1,2,3,4,5 will stop the worker at the specified time from Monday through Friday.
This enhancement increases the flexibility of controlling worker runtime and can help schedule tasks more effectively.
Example use:
nexrender-worker-win64.exe --host=http://my-host:3000 --multi-frames --stop-at-time=5:00 --stop-days=1,2,3,4,5
This will stop the worker at 5am from Monday through Friday.
Please review and provide any feedback.