Git Product home page Git Product logo

bosh-cron-release's Introduction

bosh-cron

Provides basic cron scheduling functionality.

Cron item configuration

$ bosh update-config cron-item item.yml --name cf-smoke-tests
schedule: "@hourly"
errand:
  name: smoke-tests
  instances: [first]
  keep_alive: true
include:
  deployments:
  - cf

Schema:

schedule: "@hourly"
errand:
  name: smoke-tests
  instances: [group/id, group/first]
  when_changed: false
  keep_alive: true
  • cleanup (hash) to run clean up Director task:
schedule: "@weekly"
cleanup: {}
  • include (hash) specifies which deployments to apply this item to (if none specified all current deployments are selected; currently only used with errands):
include:
  deployments:
  - name1
  - name2
  • run_once (boolean) indicates whether to delete this item after its first run.

Cron item status

Each cron item will have its status reported under same named cron-status type config:

$ bosh config cron-item-status --name cf-smoke-tests
started_at: "2017..."
finished_at: "2017..."
successful: true
error: ...
errand:
  task_id: 123
  exit_code: ...

Cron status

General cron status is reported under cron-status type config:

$ bosh config cron-status
reloaded_at: "2017..."
successful: false
errors:
- ...

Deploy

$ bosh -e vbox -d bosh-cron -n deploy manifests/example.yml \
  -v director_ip=192.168.56.6 \
  --var-file director_ssl.ca=<(bosh int ~/workspace/deployments/vbox/creds.yml --path /director_ssl/ca) \
  -v director_client=admin \
  -v director_client_secret=`bosh int ~/workspace/deployments/vbox/creds.yml --path /admin_password` \
  -o manifests/dev.yml

Development

Unit tests: ./src/github.com/bosh-tools/bosh-cron/bin/test

TODO

  • additional jobs
    • stemcell updating
    • any bosh cli command
  • explicit config validation?
  • generic status api?
  • dont track history for status configs?
  • team namespacing
  • use bosh api to filter deployments
  • running multiple cron instances?
  • generic cli commands?

bosh-cron-release's People

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.