{"id":19310226,"url":"https://github.com/cedadev/crontamer","last_synced_at":"2025-04-22T13:33:50.775Z","repository":{"id":47106636,"uuid":"75616497","full_name":"cedadev/crontamer","owner":"cedadev","description":"Cron wrapper ","archived":false,"fork":false,"pushed_at":"2024-04-18T08:46:54.000Z","size":26,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-09-22T00:05:36.456Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedadev.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}},"created_at":"2016-12-05T11:00:48.000Z","updated_at":"2023-02-28T12:16:25.000Z","dependencies_parsed_at":"2023-01-18T02:01:03.948Z","dependency_job_id":null,"html_url":"https://github.com/cedadev/crontamer","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/cedadev%2Fcrontamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fcrontamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fcrontamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fcrontamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedadev","download_url":"https://codeload.github.com/cedadev/crontamer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223898837,"owners_count":17221836,"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-10T00:23:10.046Z","updated_at":"2025-04-22T13:33:50.768Z","avatar_url":"https://github.com/cedadev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crontamer\nA wrapper script for cron to stop multiple process instances starting. Also times out after 12 hours (default)\nand emails on error.\n\n## Installation\nThis is simple python script, put it somewhere in your path.\n\nFor system-wide installation (or if you are using a virtual env), you can \nuse `pip install .` after `cd` to this directory.  You may wish to first\ninstall pip and the Python package dependencies via your package manager, \nand also to create a symlink in `/usr/bin` where it will be in the `PATH`\nused by cron jobs, e.g.:\n```\nyum install python3-pip python3-psutil python3-docopt\npip install .\nln -s /usr/local/bin/crontamer /usr/bin\n```\n\n## Usage\nUsage: crontamer.py [options] 'my_script -opt1 -opt2 arg1 arg2'\n\nWrapper script for cron jobs enabling locking, timeouts and email of failures.\nThe wrapped commands should be a single quoted string so that any shell\nexpansion and option parsing happens within the wrapped subprocess.\n\nOptions:\n  -h, --help            show this help message and exit\n  -t HOURS, --timeout=HOURS\n                        set timeout for jobs in hours [default: 12.0]\n  -l                    Sets the process locking so that another instance of\n                        this job will not start [default]\n  -u                    Sets the process locking so that another instance of\n                        this job can start\n  -e EMAIL, --email=EMAIL\n                        email address to sent to on script fail or timeout\n  -v                    verbose output set\n\nExamples\n\n\n$ crontamer\n\n$ crontamer.py  -v  -t 0.001 'echo START...;sleep 20 ;echo ...END'\nMake Lock for process 16875 file: /tmp/crontamer.bf3743cba1a799ee03400690ff8b2a38\nStarting process for 'echo START...;sleep 20 ;echo ...END'\nSTART...\nKilled on timeout!\nProcess ended Mon Aug  1 11:53:39 2016\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Fcrontamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedadev%2Fcrontamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Fcrontamer/lists"}