Giter Site home page Giter Site logo

Comments (9)

ifesdjeen avatar ifesdjeen commented on May 16, 2024

I would say that adding it shouldn't be that big of a deal, pretty much similar to what Quartz has in other stores:

                if (job.isConcurrentExectionDisallowed()) {
                    if (acquiredJobKeysForNoConcurrentExec.contains(jobKey)) {
                        excludedTriggers.add(tw);
            continue; // go to next trigger in store.                                                                                                                                                                             
                    } else {
                        acquiredJobKeysForNoConcurrentExec.add(jobKey);
            }
// ...

                if (job.isConcurrentExectionDisallowed()) {
                    ArrayList<TriggerWrapper> trigs = getTriggerWrappersForJob(job
                            .getKey());
                    Iterator<TriggerWrapper> itr = trigs.iterator();
                    while (itr.hasNext()) {
                        TriggerWrapper ttw = itr.next();
                        if (ttw.state == TriggerWrapper.STATE_WAITING) {
                            ttw.state = TriggerWrapper.STATE_BLOCKED;
                        }
                        if (ttw.state == TriggerWrapper.STATE_PAUSED) {
                            ttw.state = TriggerWrapper.STATE_PAUSED_BLOCKED;
                        }
                        timeTriggers.remove(ttw);
                    }
                    blockedJobs.add(job.getKey());
                } else if (tw.trigger.getNextFireTime() != null) {
                    synchronized (lock) {
                        timeTriggers.add(tw);
                    }
                }


/// etc

There is a plan to support pretty much everything that other stores support. I'll take a look, and check if I could do it perhaps in the end of next week. Maybe @michaelklishin is faster than I am.

But pull requests are always welcomed!

from quartz-mongodb.

michaelklishin avatar michaelklishin commented on May 16, 2024

We want to make the store as feature complete as we can. Feel free to submit a pull request that adds this feature.

from quartz-mongodb.

chillenious avatar chillenious commented on May 16, 2024

Cheers, will try. Though I'm not sure when I'll have time to dive into doing that tbh, as I'd need to get familiar more with Quartz' internals.

from quartz-mongodb.

shaulim avatar shaulim commented on May 16, 2024

any news on the job execution disallowed?

from quartz-mongodb.

michaelklishin avatar michaelklishin commented on May 16, 2024

If someone still needs this feature, feel free to submit pull requests.

from quartz-mongodb.

chillenious avatar chillenious commented on May 16, 2024

Haven't had the need for it

from quartz-mongodb.

liougehooa avatar liougehooa commented on May 16, 2024

I need this while I'm using axonframework with mongodb. Can someone help to add this feature in?

from quartz-mongodb.

michaelklishin avatar michaelklishin commented on May 16, 2024

@liougehooa you can contribute a feature you need. That's how open source works.

from quartz-mongodb.

lordbuddha avatar lordbuddha commented on May 16, 2024

Am thinking that this should be simpler than suggested by just using an additional lock for the job.

Also updating the insertion of the trigger lock to use FSYNCED (deleting the lock is OK left at JOURNAL_SAFE). This is required to guarantee the lock is 100% effective.

Am currently testing an implementation for this.

from quartz-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.