{"id":13410537,"url":"https://github.com/liujianping/job","last_synced_at":"2026-01-26T00:24:22.931Z","repository":{"id":57496780,"uuid":"180349960","full_name":"liujianping/job","owner":"liujianping","description":"JOB, make your short-term command as a long-term job. 将命令行规划成任务的工具","archived":false,"fork":false,"pushed_at":"2020-06-30T10:17:38.000Z","size":1985,"stargazers_count":145,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T20:43:07.973Z","etag":null,"topics":["bench","concurrency","crontab","job","repeat","report","retry"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/liujianping.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":"2019-04-09T11:14:51.000Z","updated_at":"2024-07-31T18:15:43.000Z","dependencies_parsed_at":"2022-09-03T02:30:43.417Z","dependency_job_id":null,"html_url":"https://github.com/liujianping/job","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liujianping%2Fjob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liujianping%2Fjob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liujianping%2Fjob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liujianping%2Fjob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liujianping","download_url":"https://codeload.github.com/liujianping/job/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243610231,"owners_count":20318929,"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":["bench","concurrency","crontab","job","repeat","report","retry"],"created_at":"2024-07-30T20:01:07.555Z","updated_at":"2026-01-26T00:24:17.898Z","avatar_url":"https://github.com/liujianping.png","language":"Shell","funding_links":[],"categories":["Shell","Command Line","命令行","Developer Tools","Build Automation","开发者工具","命令行工具### 标准 CLI`用于创建一个标准命令行应用程序的库`","命令行工具"],"sub_categories":["Standard CLI","标准CLI","Command Line Tools","命令行工具","标准 CLI"],"readme":"job\n===\n[![GoDoc](https://godoc.org/github.com/liujianping/job?status.svg)](https://godoc.org/github.com/liujianping/job) [![Go Report Card](https://goreportcard.com/badge/github.com/liujianping/job)](https://goreportcard.com/report/github.com/liujianping/job) [![Build Status](https://travis-ci.org/liujianping/job.svg?branch=master)](https://travis-ci.org/liujianping/job) [![Version](https://img.shields.io/github/tag/liujianping/job.svg)](https://github.com/liujianping/job/releases) [![Coverage Status](https://coveralls.io/repos/github/liujianping/job/badge.svg?branch=master)](https://coveralls.io/github/liujianping/job?branch=master)\n\nmake your short-term command as a long-term job\n\n## Install\n\nShell Install (Linux \u0026 MacOS)\n\n````bash\n# binary will be $(go env GOPATH)/bin/job\n$: curl -sfL https://raw.githubusercontent.com/liujianping/job/master/install.sh | sh -s -- -b $(go env GOPATH)/bin\n\n# In alpine linux (as it does not come with curl by default)\n$: wget -O - -q https://raw.githubusercontent.com/liujianping/job/master/install.sh | sh -s \n````\n\nBrew install\n\n````bash\n$: brew tap liujianping/tap \u0026\u0026 brew install job\n````\n\nOR \n\n````bash\n$: git clone https://github.com/liujianping/job.git\n$: cd job \n$: go build -mod vendor\n````\n\n## Usage\n\n````bash\n\n$: job -h\nJob, make your short-term command as a long-term job\n\nUsage:\n  job [flags] [command args ...]\n\nExamples:\n\n\t(simple)      $: job echo hello\n\t(schedule)    $: job -s \"* * * * *\" -- echo hello\n\t(retry)       $: job -r 3 -- echox hello\n\t(repeat)      $: job -n 10 -i 100ms -- echo hello\n\t(concurrent)  $: job -c 10 -n 10 -- echo hello\n\t(timeout cmd) $: job -t 500ms -- sleep 1\n\t(timeout job) $: job -T 3s -r 4 -- sleep 1\n\nFlags:\n  -t, --cmd-timeout duration       job command timeout duration\n  -c, --concurrent int             job concurrent numbers\n  -h, --help                       help for job\n  -T, --job-timeout duration       job timeout duration\n  -i, --repeat-interval duration   job repeat interval duration\n  -n, --repeat-times int           job repeat times, 0 means forever (default 1)\n  -r, --retry int                  job command retry times when failed\n  -s, --schedule string            job schedule in crontab format\n      --version                    version for job\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliujianping%2Fjob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliujianping%2Fjob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliujianping%2Fjob/lists"}