Giter VIP home page Giter VIP logo

Comments (3)

kartick avatar kartick commented on July 4, 2024 2

Hello @ibnbay00 - That's not possible (pause doesn't do that, it pauses a job from the scheduled executions). You can do a hack - add a shell job that kills your job, but is not enabled by default. Use the custom run feature to kill the job you want to stop. Sounds ugly, I know.

from ndscheduler.

qlstudent avatar qlstudent commented on July 4, 2024

This is probably out of scope but maybe the easiest thing to do for some job types is to let a job run to completion and then run another job that reverses everything the job did.

We could then "tag" the reversal job with a "reversal" tag or something and make it intuitive for the users (but not the task writers) to reverse a job. Clearly, this won't be possible for all jobs. Is it worth pursuing?

from ndscheduler.

sabw8217 avatar sabw8217 commented on July 4, 2024

Yeah, stopping a job while running is definitely something that is out of scope for this project. You could look at adding a feature like this to https://github.com/agronholm/apscheduler, which is the execution engine for ndscheduler, and then exposing it through the ndscheduler UI, but the jobs are running as coroutines in Tornado, not as separate processes, so it's not obvious to me how that would even work, but I'm not an expert in Tornado. Would the jobs need to periodically check if they have been requested to stop?

Closing this, perhaps you should take a look at https://github.com/agronholm/apscheduler and in particular the TornadoScheduler to see if this could be added there.

from ndscheduler.

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.