Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

A python schedulerplus client

Project description


1.`export serverIp = xxx export serverPort = xxx`

zk_url = localhost:2181
schedulerplus_url = localhost:8888
job_group = demogroup

from schedulerplus.client.job_executor import JobExecutor
from schedulerplus.client.job_code_messages import *

class DemoExecutor(JobExecutor):

def execute(self, external_data):
print external_data
import cherrypy
from schedulerplus.client.config import Config

from schedulerplus.client.job_dispatcher import JobDispatcher
from schedulerplus.client.job_register import JobRegister

from demo.demo_executor import DemoExecutor

class JobDispatchController(object):
job_dispatcher = JobDispatcher()

def dispatch(self):
form = cherrypy.request.json

if __name__ == "__main__":
JobRegister.instance().register("demo", DemoExecutor())

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
schedulerplus-client-0.0.16.tar.gz (5.9 kB) Copy SHA256 hash SHA256 Source None Nov 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page