{"id":16344257,"url":"https://github.com/cidem/cron_python_fun","last_synced_at":"2026-01-25T14:31:43.293Z","repository":{"id":191678349,"uuid":"685166981","full_name":"cideM/cron_python_fun","owner":"cideM","description":"Experimenting with cronjobs and Python","archived":false,"fork":false,"pushed_at":"2023-08-30T16:54:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-18T08:36:16.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cideM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-30T16:49:16.000Z","updated_at":"2023-08-30T16:50:53.000Z","dependencies_parsed_at":"2023-08-31T04:42:00.386Z","dependency_job_id":null,"html_url":"https://github.com/cideM/cron_python_fun","commit_stats":null,"previous_names":["cidem/cron_python_fun"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cideM/cron_python_fun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fcron_python_fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fcron_python_fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fcron_python_fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fcron_python_fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cideM","download_url":"https://codeload.github.com/cideM/cron_python_fun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fcron_python_fun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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":[],"created_at":"2024-10-11T00:27:39.703Z","updated_at":"2026-01-25T14:31:43.274Z","avatar_url":"https://github.com/cideM.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting started\n\n```shell\n$ docker build -t foo .\n$ docker run -t foo:latest\nINFO[2023-08-30T16:46:26Z] read crontab: crontab\nINFO[2023-08-30T16:46:30Z] starting                                      iteration=0 job.command=\"timeout 2 python ./job.py\" job.position=0 job.schedule=\"*/5 * * * * * *\"\nINFO[2023-08-30T16:46:30Z] Hello world!                                  channel=stdout iteration=0 job.command=\"timeout 2 python ./job.py\" job.position=0 job.schedule=\"*/5 * * * * * *\"\nINFO[2023-08-30T16:46:32Z] Cleaning up                                   channel=stdout iteration=0 job.command=\"timeout 2 python ./job.py\" job.position=0 job.schedule=\"*/5 * * * * * *\"\nINFO[2023-08-30T16:46:32Z] Exit                                          channel=stdout iteration=0 job.command=\"timeout 2 python ./job.py\" job.position=0 job.schedule=\"*/5 * * * * * *\"\nINFO[2023-08-30T16:46:32Z] job succeeded                                 iteration=0 job.command=\"timeout 2 python ./job.py\" job.position=0 job.schedule=\"*/5 * * * * * *\"\n^C\nINFO[2023-08-30T16:46:32Z] received interrupt, shutting down\nINFO[2023-08-30T16:46:32Z] waiting for jobs to finish\nINFO[2023-08-30T16:46:32Z] exiting\n```\n\n## Development\n\n- To change how long the Python process runs, adjust `job.py`\n- To change how long the Python process is allowed to run, change the `timeout 2` in `./crontab`\n- To change the schedule, change the crontab values in `./crontab`; since this is using [supercronic](https://github.com/aptible/supercronic) you have a few more scheduling options such as seconds (which cron doesn't support)\n\n## Resources\n\n- https://fly.io/docs/app-guides/supercronic/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Fcron_python_fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcidem%2Fcron_python_fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Fcron_python_fun/lists"}