{"id":29629926,"url":"https://github.com/dps/simplescheduler","last_synced_at":"2025-07-21T10:07:48.379Z","repository":{"id":30219704,"uuid":"33770743","full_name":"dps/simplescheduler","owner":"dps","description":"A simple task scheduler using redis for python ","archived":false,"fork":false,"pushed_at":"2015-04-13T19:41:30.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T14:58:27.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-11T09:50:32.000Z","updated_at":"2017-12-31T07:44:10.000Z","dependencies_parsed_at":"2022-09-19T17:50:22.435Z","dependency_job_id":null,"html_url":"https://github.com/dps/simplescheduler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dps/simplescheduler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dps%2Fsimplescheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dps%2Fsimplescheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dps%2Fsimplescheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dps%2Fsimplescheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dps","download_url":"https://codeload.github.com/dps/simplescheduler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dps%2Fsimplescheduler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266278415,"owners_count":23904044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-21T10:07:47.844Z","updated_at":"2025-07-21T10:07:48.362Z","avatar_url":"https://github.com/dps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simplescheduler\n[![Build status](https://travis-ci.org/dps/simplescheduler.svg?branch=master)](https://secure.travis-ci.org/dps/simplescheduler)\n\nA simple task scheduler using redis for python.\n\nI have tried some of the more popular task schedulers for python, including rq + rqscheduler and apscheduler but had problems making them work reliably in production.\n\nSimple scheduler is simple.  It's dumb.  But it works, and it's so simple that if it does go wrong, you can probably debug it yourself.\n\n## Getting started\n\nFirst, run a Redis server:\n\n```console\n$ redis-server\n```\n\nTo run jobs later, just define your blocking function:\n\n```python\nin myfile.py\n\ndef job(message):\n    print 'job done: %s' % message\n```\n\nThen, create a job, scheduler instance and schedule the job:\n\n```python\nfrom datetime import timedelta\nfrom simplescheduler import Job, Scheduler\n\nj = Job('myfile.job', ['example parameter'])\ns = Scheduler()\ns.schedule_in(j, timedelta(hours=1))\n```\n\n### The worker\n\nTo start executing scheduled function calls in the background, set environment variables corresponding to your redis instance and start a worker from your project's directory:\n\n```console\n$ export REDIS_HOST=localhost\n$ export REDIS_PORT=6397\n$ export REDIS_DB=0\n$ export REDIS_KEY=\n\n$ ss\nStart ss:sched:1428788600124490\n```\n\n\n## Installation\n\nSimply use the following command to install the latest released version:\n\n    pip install simplescheduler\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdps%2Fsimplescheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdps%2Fsimplescheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdps%2Fsimplescheduler/lists"}