GithubHelp home page GithubHelp logo

Comments (6)

Randgalt avatar Randgalt commented on August 10, 2024

You are in control of submitting new tasks. So, you could just stop submitting new tasks and then use the admin APIs to watch for current tasks to finish. Does that work for you?

from workflow.

gs-rchejerla avatar gs-rchejerla commented on August 10, 2024

Thank you for response.
In my use case, there are set of workflow instances running. I wanted to take down one instance without affecting other workflow instance.

I can very well kill that instance I wanted to take down, according to Nirmata's design other instances will pick-up running tasks(if idempotent) automatically.

But, in my case, these tasks are very time consuming ones, so I don't want to terminate them abnormally. So I was looking for any other ways to tell workflow manager to stop listening to new tasks, then I can wait till completion of already running tasks and terminate that instance.

Thank you again.

from workflow.

Randgalt avatar Randgalt commented on August 10, 2024

OK - it's definitely possible. I don't have time to do it right now. I'd appreciate a PR or I'll get to it when I can.

from workflow.

gs-rchejerla avatar gs-rchejerla commented on August 10, 2024

I forked the project, will add the feature of stopping workflow gracefully in workflowmanager API.
Before I start, could you please tell me, if any thing I need to know.

Thank you.

from workflow.

Randgalt avatar Randgalt commented on August 10, 2024

You'd:

  • Add an API to WorkflowManager - something like gracefulShutdown(maxWait)
  • The main work is in SimpleQueue - Call shutdown on the executorService then awaitTermination

Something like that

from workflow.

gs-rchejerla avatar gs-rchejerla commented on August 10, 2024

Thank you for the quick response, will send pull request once done with that.

from workflow.

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.