{"id":22290961,"url":"https://github.com/0ekk/shell-sched","last_synced_at":"2026-04-27T21:32:16.148Z","repository":{"id":157212789,"uuid":"622464935","full_name":"0ekk/shell-sched","owner":"0ekk","description":"Simple concurrent task scheduler based on shell and few GNU tools","archived":false,"fork":false,"pushed_at":"2024-04-15T10:43:39.000Z","size":3979,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-26T00:07:01.714Z","etag":null,"topics":["bash","concurrent","scheduler"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0ekk.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}},"created_at":"2023-04-02T07:32:25.000Z","updated_at":"2023-07-16T07:59:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b484319-0ac0-4e05-b5d0-853463c41bb8","html_url":"https://github.com/0ekk/shell-sched","commit_stats":null,"previous_names":["0ekk/shell-sched","tu1h/shell-sched"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0ekk/shell-sched","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0ekk%2Fshell-sched","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0ekk%2Fshell-sched/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0ekk%2Fshell-sched/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0ekk%2Fshell-sched/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0ekk","download_url":"https://codeload.github.com/0ekk/shell-sched/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0ekk%2Fshell-sched/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","concurrent","scheduler"],"created_at":"2024-12-03T17:14:44.719Z","updated_at":"2026-04-27T21:32:16.132Z","avatar_url":"https://github.com/0ekk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nshell-sched is a simple concurrent task scheduler based on shell and few GNU tools.\n\n## Features\n\n- Concurrent and asynchronous\n- Priority based schedule\n- Dynamic tuning and slow start\n- Less intrusion\n\n[![quick_start_image](./demo.gif)](https://asciinema.org/a/597018)\n\n## Important\n\n   The scheduler can only be enabled when SCHED_ENABLED=1 (default).\n\n   If not, all task emited run serially as normal rather than exit with error.\n\n## Usage example\n   If you want sleep 10 seconds in background:\n\n    # Import all things of sched.sh into current shell proccess.\n    source sched.sh \n\n    # Startup scheduler\n    sched::startup\n\n    # Emit a task to scheduler\n    sched::emit \"sleep 10\"\n\n    # Block current proccess for waiting tasks. Optional, if absent, tasks have still be running in background\n    sched::wait_all_tasks\n\n    # Shutdown scheduler\n    sched::shutdown\n\n## Exposed environment variables\n   1. SCHED_ENABLED\n\n        Enable or disable scheduler\n\n        1 -\u003e enable, 0 -\u003e disable\n\n   2. SCHED_DATA_ROOT\n\n       Root path that stored intermediate data on runtime. Default is under /tmp that is generated automaticlly by runtime.\n\n   3. SCHED_MAX_RUNNERS\n\n        Max parrallel task counts. Must be great than 0. Default (2 * cpu cores)\n        \n   4. SCHED_DEBUG\n\n        Enable or disable scheduler debug log\n\n        1 -\u003e enable, 0 -\u003e disable\n\n# Exposed functions show as below:\n   1. sched::startup\n\n        Start scheduler\n\n   2. sched::shutdown\n\n        Stop scheduler\n\n   3. sched::emit \\\u003ctask\\\u003e [\\\u003cpriority\\\u003e]\n   \n        Emit a task to scheduler which would select a task to execute asynchronously based on its priority\n\n        Note: task must be a function or one-line command\n\n   4. sched::wait_all_tasks_and_exit\n\n        Wait all tasks complete or any error occurred, and exit the calling proceess\n\n   5. sched::wait_all_tasks\n   \n        Wait all tasks complete or any error occurred, only exit the calling proccess when error occurred\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0ekk%2Fshell-sched","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0ekk%2Fshell-sched","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0ekk%2Fshell-sched/lists"}