Giter Site home page Giter Site logo

Comments (6)

kraih avatar kraih commented on May 28, 2024

It's not actually the tests that need to be changed, but how we currently handle testing with $minion->perform_jobs.

from minion.

stephan48 avatar stephan48 commented on May 28, 2024

Thanks sri! The discussion can also be found in our IRC Log! http://irclog.perlgeek.de/mojo/2016-02-21#i_12078379

from minion.

JamesDooley avatar JamesDooley commented on May 28, 2024

I agree this would be a very useful feature. It would allow us to easily queue sub tasks for very complex jobs. For my use case I can check every few seconds, but it would be a lot better to have Minion respond back, within a reasonable time, when a job is completed.

from minion.

kraih avatar kraih commented on May 28, 2024

@JamesDooley We already have job dependencies for that.

from minion.

JamesDooley avatar JamesDooley commented on May 28, 2024

Correct me if I am wrong, but dependencies only allow you to start new jobs inside a parent and exit. The parent job will not be waiting for the child jobs to complete, which is where the notifications could come in to play. I would like to wait for a set of child tasks to complete, before moving on to the next step in the parent job.

Although, looking at the test code in that commit, it looks like I could approach this differently and schedule all of the tasks from the parent and finish the job. Set the dependencies on the tasks that need to happen later, and they will not be run until their parents have completed.

from minion.

kraih avatar kraih commented on May 28, 2024

I don't think we will do this, now that Mojolicious has native support for subprocesses, there shouldn't be too many use cases left. http://mojolicious.org/perldoc/Mojo/IOLoop#subprocess

from minion.

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.