{"id":18340993,"url":"https://github.com/ch3nnn/xxl-job-zero","last_synced_at":"2025-06-30T17:35:15.935Z","repository":{"id":257764285,"uuid":"859246617","full_name":"ch3nnn/xxl-job-zero","owner":"ch3nnn","description":"xxl-job 与 go-zero 框架集成","archived":false,"fork":false,"pushed_at":"2025-03-09T10:16:21.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:50:03.512Z","etag":null,"topics":["go","go-zero","xxl-job"],"latest_commit_sha":null,"homepage":"https://blog.ch3nnn.cn/posts/2025/%E5%BE%AE%E6%9C%8D%E5%8A%A1-%E5%88%86%E5%B8%83%E5%BC%8F%E4%BB%BB%E5%8A%A1/","language":"Go","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/ch3nnn.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":"2024-09-18T10:41:47.000Z","updated_at":"2025-03-09T10:31:01.000Z","dependencies_parsed_at":"2024-09-18T15:16:03.813Z","dependency_job_id":"a873c92e-feec-4cb1-b75d-f37cbaa56c91","html_url":"https://github.com/ch3nnn/xxl-job-zero","commit_stats":null,"previous_names":["ch3nnn/xxl-job-zero"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ch3nnn/xxl-job-zero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch3nnn%2Fxxl-job-zero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch3nnn%2Fxxl-job-zero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch3nnn%2Fxxl-job-zero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch3nnn%2Fxxl-job-zero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ch3nnn","download_url":"https://codeload.github.com/ch3nnn/xxl-job-zero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch3nnn%2Fxxl-job-zero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261170424,"owners_count":23119513,"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":["go","go-zero","xxl-job"],"created_at":"2024-11-05T20:25:09.943Z","updated_at":"2025-06-21T18:07:39.188Z","avatar_url":"https://github.com/ch3nnn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xxl-job-zero\n\u003e 与 go-zero 框架集成\n\n## 目录结构\n```shell\n./\n├── LICENSE\n├── README.md\n├── deploy  // 部署相关\n│   ├── docker-compose.yml\n│   └── tables_xxl_job.sql\n├── etc // 配置文件\n│   └── job.yaml\n├── go.mod\n├── go.sum\n├── internal \n│   ├── config  \n│   │   └── config.go\n│   ├── handler \n│   │   └── routes.go  // xxl-job-admin http交互 \n│   ├── svc\n│   │   ├── regtask.go  // 注册任务\n│   │   └── servicecontext.go \n│   └── task  // 定时任务\n│       ├── demo1.go\n│       ├── demo2.go\n│       └── demo3.go\n├── job.go  // 主函数\n├── makefile\n└── pkg\n    └── xxlx\n        ├── log.go\n        └── xxl.go\n\n\n```\n\n## xxl-job-admin 配置\n\n### 1. 添加执行器\n\n执行器管理-\u003e新增执行器,执行器列表如下：\n\n```\nAppName\t\t名称\t\t注册方式\tOnLine \t\t机器地址 \t\t操作\ngolang-jobs\tgolang执行器\t自动注册 \t\t查看 ( 1 ）   \n```\n\n查看-\u003e注册节点\n\n```\nhttp://127.0.0.1:8888\n```\n\n### 2. 添加任务\n\n任务管理-\u003e新增(注意，使用BEAN模式，`JobHandler`与`RegTask`名称一致)\n\n```\n1\t测试panic\tBEAN：task.demo3\t* 0 * * * ?\tadmin\tSTOP\t\n2\t测试耗时任务\tBEAN：task.demo2\t* * * * * ?\tadmin\tSTOP\t\n3\t测试golang\tBEAN：task.demo1\t* * * * * ?\tadmin\tSTOP\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch3nnn%2Fxxl-job-zero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fch3nnn%2Fxxl-job-zero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch3nnn%2Fxxl-job-zero/lists"}