{"id":21013467,"url":"https://github.com/heavenshell/py-robo-cron","last_synced_at":"2026-04-21T22:34:19.688Z","repository":{"id":26032999,"uuid":"29476054","full_name":"heavenshell/py-robo-cron","owner":"heavenshell","description":"Mount cron system to robo.","archived":false,"fork":false,"pushed_at":"2016-06-14T10:22:57.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:12:11.338Z","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-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README.rst","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-01-19T15:02:05.000Z","updated_at":"2016-06-14T10:22:58.000Z","dependencies_parsed_at":"2022-08-24T14:19:45.040Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/py-robo-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-robo-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-robo-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-robo-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-robo-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/py-robo-cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243437970,"owners_count":20290865,"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":"2024-11-19T09:42:33.363Z","updated_at":"2025-12-29T22:58:22.311Z","avatar_url":"https://github.com/heavenshell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"robo.handlers.cron\n==================\n.. image:: https://travis-ci.org/heavenshell/py-robo-cron.svg?branch=master\n    :target: https://travis-ci.org/heavenshell/py-robo-cron\n\nMount cron system to `robo \u003chttps://github.com/heavenshell/py-robo/\u003e`_.\n\nSend messages on a specific time.\n\nInstall\n-------\n\n.. code::\n  $ pip install git+https://github.com/heavenshell/py-robo-cron\n\nDependency\n----------\n\nThis handler depends on `APScheduler \u003chttps://bitbucket.org/agronholm/apscheduler/\u003e`_.\n\nIf you want to persistent job, you can use `Redis \u003chttps://pypi.python.org/pypi/redis/\u003e`_.\n\nUsage\n-----\n\nAdd job to run `robo` handler.\n\n.. code::\n\n  \u003e robo add job \"*/1 * * * *\" robo echo hello\n  Job Scheduler.message (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*/1'], next run at: 2015-01-23 00:53:00 JST) created.\n  hello\n\nList all jobs.\n\n.. code::\n\n  \u003e robo list jobs\n  61530a5a8e7e40c7814ce90768792476: \"*/1 * * * *\" 2015/01/23 00:55:00 robo echo hello\n\nPause specific job.\n\n.. code::\n  \u003e robo pause job 61530a5a8e7e40c7814ce90768792476\n  Job paused.\n\nResume paused job.\n\n.. code::\n\n  \u003e robo resume job 61530a5a8e7e40c7814ce90768792476\n  Job resumed.\n\nDelete job.\n\n.. code::\n\n  \u003e robo delete job 61530a5a8e7e40c7814ce90768792476\n  Success to delete job.\n\nShow cron expression.\n\n.. code::\n\n  \u003e robo job expression\n        * * * * *\n        T T T T T\n        | | | | `- day_of_week - 0 ..  6\n        | | | `--- month ------- 1 .. 12\n        | | `----- day --------- 1 .. 31\n        | `------- hour -------- 0 .. 23\n        `--------- minute ------ 0 .. 59\n\nJob persistence\n~~~~~~~~~~~~~~~\n\nAdd `jobstore` options to Robot options.\n\n.. code:: python\n\n  def main(args=None):\n      logging.basicConfig(level=args.verbose, format=Robot.debug_log_format)\n      logger = logging.getLogger('robo')\n\n      options = {\n          'cron': {'jobstore': 'redis', 'options': {'alias': args.name}}\n      }\n      robot = Robot(name=args.name, logger=logger, **options)\n      robot.register_default_handlers()\n      robot.load_adapter(args.adapter)\n      robot.run(args.adapter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fpy-robo-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fpy-robo-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fpy-robo-cron/lists"}