{"id":20723315,"url":"https://github.com/jeamon/gorqs","last_synced_at":"2026-06-10T09:31:26.381Z","repository":{"id":202817846,"uuid":"707900975","full_name":"jeamon/gorqs","owner":"jeamon","description":"Go-based concurrent-safe library to start and stop a Queue with capabilities to asynchronously push jobs and execute them either into sync or async fashion. Along with capability to fetch their execution results.","archived":false,"fork":false,"pushed_at":"2023-11-04T23:37:16.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T08:29:59.515Z","etag":null,"topics":["concurrency","go","golang","goroutines-channels","job-queue","library","queue","system-programming"],"latest_commit_sha":null,"homepage":"https://learn.cloudmentor-scale.com","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/jeamon.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":"2023-10-20T23:45:33.000Z","updated_at":"2023-11-04T14:50:33.000Z","dependencies_parsed_at":"2023-10-22T21:21:39.906Z","dependency_job_id":"7365a641-008e-4aee-a153-bbbdc4c563e3","html_url":"https://github.com/jeamon/gorqs","commit_stats":null,"previous_names":["jeamon/goq","jeamon/gorqs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeamon/gorqs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeamon%2Fgorqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeamon%2Fgorqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeamon%2Fgorqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeamon%2Fgorqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeamon","download_url":"https://codeload.github.com/jeamon/gorqs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeamon%2Fgorqs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"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-10T02:00:07.152Z","response_time":89,"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":["concurrency","go","golang","goroutines-channels","job-queue","library","queue","system-programming"],"created_at":"2024-11-17T04:08:16.987Z","updated_at":"2026-06-10T09:31:26.356Z","avatar_url":"https://github.com/jeamon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gorqs\n\n[![Build Status](https://github.com/jeamon/gorqs/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/jeamon/gorqs/actions)\n[![godoc](https://godoc.org/github.com/jeamon/gorqs?status.svg)](https://godoc.org/github.com/jeamon/gorqs)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jeamon/gorqs)](https://goreportcard.com/report/github.com/jeamon/gorqs)\n[![codecov](https://codecov.io/gh/jeamon/gorqs/graph/badge.svg?token=AKQ6PV9N90)](https://codecov.io/gh/jeamon/gorqs)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/jeamon/gorqs)\n[![MIT License](https://img.shields.io/github/license/jeamon/gorqs)](https://github.com/jeamon/gorqs/blob/main/LICENSE)\n\n**`gorqs`** means *Go Runnable Queue Service*. This is a multi-features go-based concurrent-safe library to **queue \u0026 execute** jobs and records their execution result. You can start the Queue service into synchronous or asynchronous mode.\nThe mode defines wether each added job should be processed *synchronously* or *asynchronously*. Be aware that adding a job to the Queue system is always a non-blocking operation and returns the job id on success. Fetching a given job execution result removes that entry from local records cache.\n\n## Features\n\n`gorqs.New(gorqs.SyncMode | gorqs.TrackJobs)` or `gorqs.New(gorqs.AsyncMode | gorqs.TrackJobs)` method provides a Queue object which implements the `Queuer` interface with below actions.\n\n| Action | Description |\n|:------ | :-------------------------------------- |\n| **`Start(context.Context) error`** | starts the jobs queue |\n| **`Stop(context.Context) error`** | stops the jobs queue |\n| **`Push(context.Context, Runner) (int64, error)`** | adds a job to the queue asynchronously |\n| **`Fetch(context.Context, int64) error`** | gets result execution of given job |\n| **`IsRunning() bool`** | provides queue service status |\n| **`Clear()`** | delete all jobs results records |\n\n*An acceptable runnable job should implement the `Runner` interface defined as below :*\n\n```go\ntype Runner interface {\n\tRun() error\n}\n```\n\n## Installation\n\nJust import the `gorqs` library as external package to start using it into your project. There are some examples into the *examples* folder. \n\n**[Step 1] -** Download the package\n\n```shell\n$ go get github.com/jeamon/gorqs\n```\n\n\n**[Step 2] -** Import the package into your project\n\n```shell\n$ import \"github.com/jeamon/gorqs\"\n```\n\n\n**[Step 3] -** Optional: Clone the library to run some examples\n\n```shell\n$ git clone https://github.com/jeamon/gorqs.git\n$ cd gorqs\n$ go run examples/sync-mode/example.go\n$ go run examples/async-mode/example.go\n```\n\n## Contact\n\nFeel free to [reach out to me](https://blog.cloudmentor-scale.com/contact) before any action. Feel free to connect on [Twitter](https://twitter.com/jerome_amon) or [linkedin](https://www.linkedin.com/in/jeromeamon/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeamon%2Fgorqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeamon%2Fgorqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeamon%2Fgorqs/lists"}