GithubHelp home page GithubHelp logo

megapapa / bootique-job Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bootique/bootique-job

0.0 2.0 0.0 448 KB

Provides a job execution framework with Bootique integration

Home Page: http://bootique.io

License: Apache License 2.0

Java 100.00%

bootique-job's Introduction

Build Status Maven Central

bootique-job

Provides a job execution framework with Bootique integration. The framework includes a basic runnable job definition with metadata and parameters, a job scheduler. It contains Bootique commands to list jobs, run individual jobs, and schedule periodic job execution. Also includes a Zookeeper-based cluster locking facility for jobs that should not be allowed to run concurrently.

See usage example bootique-jobs-demo.

Commands

ListCommand

--list

List all configured jobs and their parameters and default parameter values.

ExecCommand

--exec --job=name [--job=name [...]] [--serial]

Executes one or more jobs, possibly in parallel. The options have the following meaning:

  • --job=name: name is either a job name or a job group name. Multiple --job arguments can be specified in order to run several jobs with a single command.
  • --serial: enforces sequential execution of jobs, in the same order that they are specified in the program arguments. Does not have any effect, if only one --job argument has been specified.

This command implements a fail-fast behavior, when run in serial mode. If there is more than one --job argument, and one of the jobs fails, the command terminates immediately, and the subsequent jobs are not executed.

This command returns exit code 0, only if all of the jobs complete normally. I.e. it always returns a non-zero exit code, if at least one of the jobs fails, regardless of the mode of execution (parallel or serial).

ScheduleCommand

--schedule

Schedules and executes jobs according to configuration. Waits indefinitely on the foreground.

bootique-job's People

Contributors

andrus avatar atomashpolskiy avatar const1993 avatar elena-bondareva avatar irus avatar stariy95 avatar

Watchers

 avatar  avatar

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.