{"id":19273597,"url":"https://github.com/zikwall/workstation","last_synced_at":"2026-06-09T21:31:56.011Z","repository":{"id":50130436,"uuid":"330376242","full_name":"zikwall/workstation","owner":"zikwall","description":"Simple, Powerful and productive asynchronous task manager written in Go","archived":false,"fork":false,"pushed_at":"2021-06-03T09:17:10.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T20:43:54.780Z","etag":null,"topics":["go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zikwall.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":"2021-01-17T11:35:18.000Z","updated_at":"2021-06-03T09:17:11.000Z","dependencies_parsed_at":"2022-09-13T16:01:29.200Z","dependency_job_id":null,"html_url":"https://github.com/zikwall/workstation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zikwall/workstation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fworkstation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fworkstation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fworkstation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fworkstation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zikwall","download_url":"https://codeload.github.com/zikwall/workstation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikwall%2Fworkstation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34127343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go"],"created_at":"2024-11-09T20:43:35.118Z","updated_at":"2026-06-09T21:31:55.991Z","avatar_url":"https://github.com/zikwall.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build](https://github.com/zikwall/workstation/workflows/tests/badge.svg)](https://github.com/zikwall/workstation/actions)\n[![build](https://github.com/zikwall/workstation/workflows/golangci-lint/badge.svg)](https://github.com/zikwall/workstation/actions)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eWorkstation\u003c/h1\u003e\n  \u003ch5\u003eSimple, Powerful and productive asynchronous task manager written in Go\u003c/h5\u003e\n\u003c/div\u003e\n\n#### Types\n\n- [x] Workstation - suitable for long-running processes\n- [ ] WorkstationWorkerPool - pool of tasks that are processed in a limited number of threads\n\n#### How to use\n\n- `go get -u github.com/zikwall/workstation`\n\n##### Workstation. Define custom worker\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"github.com/zikwall/workstation\"\n)\n\ntype MyWorker struct{}\n\nfunc (w *MyWorker) Perform(ctx context.Context, key string, payload workstation.Payload) {\n\t//.. \u003cyour custom code here\u003e\n\t//.. anything longer\n\t//.. or unit process\n}\n\nfunc (w *MyWorker) Name() string {\n\treturn \"worker_name_here\"\n}\n\n// and create workstation ...\n```\n\n##### Workstation. Create workstation\n\n```go\nctx, cancel := context.WithCancel(context.Background())\n\nstation := workstation.BuildWorkstation(ctx, \u0026MyWorker{}, \u0026MySecondWorker{})\n\nspace1, _ := station.Workspace((\u0026MyWorker{}).Name())\nspace2, _ := station.Workspace((\u0026MySecondWorker{}).Name())\n\n// run sub-processes\n\nerr := space1.PerformAsync(\n    \"first_process\", workstation.Payload{\"a\": 1, \"b\": \"6\", \"c\": sampleFunctionC},\n)\n\nerr := space2.PerformAsync(\n    \"first_process\", workstation.Payload{\"a\": 2, \"b\": \"11\", \"c\": sampleFunctionC},\n)\n\n// .. \u003canother sub-processes\u003e\n// .. \u003cyour custom code\u003e\n\ncancel()\n\n// stop all workspaces\nstation.Shutdown(func(e error) {\n\t// .. \u003chandle errors\u003e\n})\n```\n\n#### Todo\n\n- [ ] **Workstation**: configuration\n- [ ] **Workstation**: logs\n- [ ] **Workstation**: limitation of parallel processes\n- [ ] **Workstation**: max retry the process if the process failed with an error\n- [ ] **Workstation**: server for pull/push jobs\n- [ ] **Workstation**: web interface with auth, dashboards, control panel\n- [ ] **Workstation**: process states: processed, busy, failed, dead (if retry \u003e N), cancelled\n- [ ] **WorkstationWorkerPool**: need to implement","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikwall%2Fworkstation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzikwall%2Fworkstation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikwall%2Fworkstation/lists"}