{"id":20259556,"url":"https://github.com/pharo-contributions/scheduler","last_synced_at":"2025-10-11T20:32:24.345Z","repository":{"id":41867758,"uuid":"265687066","full_name":"pharo-contributions/Scheduler","owner":"pharo-contributions","description":"An easy-to-use task scheduler that can run arbitrary blocks","archived":false,"fork":false,"pushed_at":"2023-09-22T06:38:14.000Z","size":89,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T01:40:02.235Z","etag":null,"topics":["pharo"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pharo-contributions.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-20T21:12:21.000Z","updated_at":"2025-03-25T00:04:12.000Z","dependencies_parsed_at":"2025-04-11T01:34:40.404Z","dependency_job_id":null,"html_url":"https://github.com/pharo-contributions/Scheduler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pharo-contributions/Scheduler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-contributions%2FScheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-contributions%2FScheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-contributions%2FScheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-contributions%2FScheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharo-contributions","download_url":"https://codeload.github.com/pharo-contributions/Scheduler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-contributions%2FScheduler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008618,"owners_count":26084480,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["pharo"],"created_at":"2024-11-14T11:15:21.959Z","updated_at":"2025-10-11T20:32:24.329Z","avatar_url":"https://github.com/pharo-contributions.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scheduler\n\nAn easy-to-use **task scheduler** for [Pharo](https://www.pharo.org) that can run arbitrary blocks\n\n[![Unit Tests](https://github.com/pharo-contributions/Scheduler/workflows/Build/badge.svg?branch=master)](https://github.com/pharo-contributions/Scheduler/actions?query=workflow%3ABuild)\n[![Coverage Status](https://codecov.io/github/pharo-contributions/Scheduler/coverage.svg?branch=master)](https://codecov.io/gh/pharo-contributions/Scheduler/branch/master)\n\n[![Pharo 7](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 8](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 9](https://img.shields.io/badge/Pharo-9.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)\n\n\n## Quick start\n\n```Smalltalk\nMetacello new \n    repository: 'github://pharo-contributions/Scheduler/src';\n    baseline: 'Scheduler';\n    load\n```\n\n[![Pharo Scheduler](https://img.youtube.com/vi/NOr32YgdujI/0.jpg)](https://www.youtube.com/watch?v=NOr32YgdujI)\n\n## Overview\n\nAn easy-to-use task scheduler that can run arbitrary blocks:\n\nEvery so often (e.g. every hour starting now)\n\n- Daily at a given time\n- Periodically starting at a given time (e.g. every other hour starting a noon)\n- Per a provide schedule (e.g. using Schedule instance you can run tasks every Monday and Friday)\n- A one time task at some point in the future\n\nFor ease of use tasks can be blocks passed to the scheduler (or any object that understands #value).\n\n### Example 1\n\n```Smalltalk\n\"Start a new task scheduler and keep it around\"\nscheduler := TaskScheduler new.\n\nscheduler start.\n```\n\n### Example 2\n\n```Smalltalk\n\"Let's save the image every hour\"\nscheduler\n    do: [Smalltalk snapshot: true andQuit: false]\n    every: 60 minutes.\n```\n\n### Example 3\n\n```Smalltalk\n\"Let's run a backup at 2am every day\"\nscheduler\n    do: [\"backup code here\"]\n    at: '2am'\n```\n\n### Example 4\n\n```Smalltalk\n\"Let's perform a bank transfer every other hour starting at 1pm\"\nscheduler\n    do: [\"swiss bank account transfer code\"]\n    at: '1pm'\n    every: 2 hours.\n```\n\n### Example 5\n\n```Smalltalk\n\"Let's do a one time email reminder\"\nscheduler\n    doOnce: [\"email reminder to go on honeymoon\"]\n    at: '2005-1-15T8:00'\n```\n\n### Example 6\n\n```Smalltalk\n\"Let's do a one time email reminder\"\n\"You can delete tasks by sending #delete to them\"\n(scheduler taskAt: 1) delete\n```\n\n### Example 7\n\n```Smalltalk\n\"Stop the scheduler from running -- but don't delete its tasks\"\nscheduler stop.\n```\nRead the provided tests for more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-contributions%2Fscheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpharo-contributions%2Fscheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-contributions%2Fscheduler/lists"}