Skip to content

Instantly share code, notes, and snippets.

Lewis Franklin brolewis

  • Erie, CO
Block or report user

Report or block brolewis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brolewis
brolewis / schedulers.py
Last active Jan 3, 2019
A distributed job scheduler for Celery using ZooKeeper (via kazoo) to manage the locking.
View schedulers.py
'''Zookeeper-based Scheduler'''
## Standard Library
import cPickle # Store dictionary in ZooKeeper
import datetime # Time delta
import socket # Hostname
## Third Party
import celery # Current app
import celery.beat # Scheduler
import celery.utils.log # Get logger
import kazoo.client # ZooKeeper Client Library
You can’t perform that action at this time.