Comments (5)
@joint-song, a configuration property may be introduced in the upcoming release to address this requirement.
from go-quartz.
@joint-song, PR #129 introduces a dedicated channel for managing misfired jobs. Providing a channel instead of a configuration flag gives the user more flexibility and control. Let me know if this aligns with your requirements.
from go-quartz.
I understand that the problem is that when using a worker pool, sometimes jobs are waiting to be processed, and their next execution time will likely be expired next time. In this case, I would suggest extending the OutdatedThreshold
duration. But I agree, there is a problem with visibility. There are several ways to approach this, but have you thought about what would work best for you?
from go-quartz.
Java-quartz has MisfireInstruction
to preventing this kind of outdated cron jobs. It has three options: MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY, MISFIRE_INSTRUCTION_FIRE_ONCE_NOW and MISFIRE_INSTRUCTION_DO_NOTHING to be configured. I think this is necessary for some scenarios.
from go-quartz.
Yes, this solved my problem well, thanks for your help!
from go-quartz.
Related Issues (20)
- invalid cron expression: fillRange HOT 5
- ability to Start after all jobs were added HOT 1
- CronTrigger.NextFireTime() can return invalid results
- Job with cron for particular time executes many times HOT 5
- Add support for mixed range type in cron expression
- Cannot use alternative Logger implementations HOT 4
- Is this distributed HOT 4
- DeleteJob issue, when deleting job already waiting for execution HOT 1
- Trigger should be serializable HOT 3
- Reset the scheduler after successfully clearing the job queue
- How can I identify a Job from JobKey? HOT 3
- There's not an appropriate way to Pause/Resume a job HOT 2
- Add filtering capability to the GetJobKeys method of the Scheduler
- Should non-essential spaces in the cron expression allowed? HOT 1
- Some cron-expression will fail to be parsed. HOT 1
- RunOnceTrigger cannot be properly unmarshalled HOT 1
- Jobs are taken out of the queue when being re-scheduled HOT 6
- How are atomic operations on Resume(Job) and Pause(Job) guaranteed in StdScheduler? HOT 1
- How to integrate into the database? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-quartz.