Skip to main content

Cron job wrapper that ensures a script gets run from one node in the cluster.

Project description

Clustercron

https://img.shields.io/pypi/v/clustercron.svg https://img.shields.io/travis/maartenq/clustercron.svg Documentation Status https://codecov.io/github/maartenq/clustercron/coverage.svg?branch=master

Clustercron is cronjob wrapper that tries to ensure that a script gets run only once, on one host from a pool of nodes of a specified loadbalancer. Clustercron select a master from all nodes and will run the cronjob only on that node.

Features

Supported load balancers (till now):

  • AWS Elastic Load Balancing (ELB)

  • AWS Elastic Load Balancing v2 (ALB)

History

0.6.1 (2019-09-13)

  • Make the region entry in ~/.aws/config optional

  • Bug fix Cache file can contain incompatible time format

0.5.4 (2019-07-31)

  • Added boto3 requirements to setup.py

  • Docs update

0.5.2 (2019-07-31)

  • Added ElasticLoadBalancingv2 (ALB) support.

  • Update requirements

0.4.10 (2016-10-14)

  • Updated dev requirements

  • Updated test requirements in setup.py

0.4.9 (2016-08-28)

  • Update requirements

  • Removed pinned requirements from setup.py

0.4.8 (2016-08-20)

  • Update requirements: pytest -> 3.0.0

0.4.7 (2016-08-13)

  • Travis/Tox fixes.

0.4.6 (2016-08-13)

  • Added twine to requirements_dev.txt

0.4.5 (2016-08-13)

  • Added pyup.io

  • ISC License

  • pinned requirements

0.4.4 (2016-05-27)

  • NOQA for false positive in pyflakes

0.4.1 (2016-05-21)

  • Fixed Python3 unicode compatibility issue for json module.

0.4.0 (2016-05-21)

  • Added Caching of master selection.

0.3.7.dev1 (2015-09-12)

  • Added option ‘-o’ ‘–output’ for output of wrapped ‘cron command’.

0.3.6 (2015-08-08)

  • Add more tests.

  • syslog unix_socket path follows symbolic links (fedora)

0.3.5 (2015-08-07)

  • Urllib refactoring with requests.

  • Use responses for tests.

  • Factored out Mock objects.

  • Removed OS X ‘open’ command from makefile.

  • Removed python 2/3 compatibilty module.

  • Removed unused exceptions module.

0.3.4 (2015-07-12)

  • Correction in docs/usage.rst

0.3.3 (2015-07-12)

  • Remove :ref: tag from README.rst (for formatting on PyPi)

0.3.2 (2015-07-12)

  • Fix mock requirements in tox.ini (mock 1.1.1 doesn’t work with Python 2.6)

0.3.1 (2015-06-28)

  • First release (beta status)

0.3.0 (2015-06-28)

  • First release

0.3.0.dev2 (2015-06-21)

  • First real working version for ELB

0.3.0.dev1 (2015-06-17)

  • First working version for ELB

0.2.0.dev2 (2015-05-25)

  • In Development stage 1

  • Removed HAproxy for now.

0.1.3 (2015-05-22)

  • Refactor command line argument parser

0.1.2 (2015-03-28)

  • More test for commandline

  • Travis stuff

0.1.0 (2015-01-23)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clustercron-0.6.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

clustercron-0.6.1-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file clustercron-0.6.1.tar.gz.

File metadata

  • Download URL: clustercron-0.6.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.16

File hashes

Hashes for clustercron-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b0f2897364107feacf93b5b4276bb5335adfc3d3ebd22af283d60e319f18520b
MD5 ab75134e056576b220370606aaff5482
BLAKE2b-256 f531276917549b9711e9b3c6035cfb1c1beb0c5f0f44e91638304d0f6ae9017b

See more details on using hashes here.

File details

Details for the file clustercron-0.6.1-py2.py3-none-any.whl.

File metadata

  • Download URL: clustercron-0.6.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.16

File hashes

Hashes for clustercron-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9288ee5e677d9b6bfb53c506280362eaed824eaa7089f2465c18db9fed34f1f0
MD5 342fd49160ba29aa1442c7d8c2d8c85d
BLAKE2b-256 f5dfe7e73271958a208fa5ac5ee6ed9cf8232b484dbc1624320e1082bc139c8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page