Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 611 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 611 Bytes

Kala python client

Kala is a simplistic, modern, and performant job scheduler written in Go. It lives in a single binary and does not have any dependencies.

Getting Started

from kala import Client
cl = Client("http://127.0.0.1:8000")

cl.list_jobs()

Create new job

from kala.models import Job

data = {
    "epsilon": "PT5S",
    "command": "bash /home/ajvb/gocode/src/github.com/ajvb/kala/examples/example-kala-commands/example-command.sh",
    "name": "test_job",
    "schedule": "R2/2017-06-04T19:25:16.828696-07:00/PT10S"}

job = Job(**data)
jid = cl.create_job(job)