v3: Added the WithEntries function to option.go to handle cases where…#529
v3: Added the WithEntries function to option.go to handle cases where…#529NickTaporuk wants to merge 2 commits intorobfig:v3from
Conversation
… the app is restarted and has pre-existing running cron jobs.
|
Hi guys. Title: Add WithEntries Option to Support Job Restoration After App Reboot Description: This PR introduces a new option WithEntries to the github.com/robfig/cron package, which allows the use of pre-existing entries when initializing the cron scheduler. This is particularly useful in scenarios where the application restarts, and you want to maintain the previous job schedules without recalculating or losing them. Key Change: WithEntries: This function provides an option to load an existing set of entries ([]*Entry) into the cron scheduler during initialization. This enables the cron jobs to continue running from where they left off before the reboot, preserving the schedule’s state across restarts. |
|
I made improvements to this repository and released version 4.0.0, which supports context. Context`。 Welcome to use. flc1125/go-cron Based on the fact that this warehouse has been in disrepair all year round. If you are interested, I really hope that your request can also be merged into |
|
Hi .
Thank you for the message. Ok.
Best,
Mykola.
пт, 1 лист. 2024 р. о 01:53 Flc゛ ***@***.***> пише:
… I made improvements to this repository and released version 4.0.0, which
supports context. Context`。
Welcome to use. flc1125/go-cron
------------------------------
Based on the fact that this warehouse has been in disrepair all year round.
If you are interested, I really hope that your request can also be merged
into 4.x. Welcome to maintain together.
—
Reply to this email directly, view it on GitHub
<#529 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF5X6RTSPQDWOQTWMZ4CQLZ6LGKBAVCNFSM6AAAAABQDHNNACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGA4TINJUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi guys.
I've prepared the pull request to resolve an issue with init the cron after restart.
Please make a review as it be possible.