joobq 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +20 -0
  4. data/lib/joobq.rb +1528 -0
  5. metadata +49 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 67b5374ff3213c13458331378d57179fae558cbc24c0b68aed2a9f5b2e096b11
4
+ data.tar.gz: 55b9ec288c65dfc601086330b5302b8574e41c59d146916aaec9bb781219d4e8
5
+ SHA512:
6
+ metadata.gz: 74d28c83319a490c4846a42ef11d8c70ded67b325a9371f2c0b23eb56a7b305df28e0b12492f1f7b0237bf7a388e6a811ba2a204a39ff645ab0ca6b4ea7b2087
7
+ data.tar.gz: 9408ccebb45e1b74617dc451e649b611275cc68308819d8eff185b1a4352d0318f5efd5d68bd51bd78a0b198e9c44a60c954bc386a71af673fd6ef6ac57d56eb
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 eliasjpr <eliasjpr@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # JoobQ SDK for Ruby
2
+
3
+ A thin worker and producer client for the JoobQ SDK gateway of a self-hosted JoobQUI server: register jobs and
4
+ workflow blueprints, run their tasks with retries, heartbeats and graceful shutdown, and enqueue jobs (up to 500 in one
5
+ call with `enqueue_many`) or start workflows. With JoobQ Pro on the server: batches with completion callbacks (`create_batch`,
6
+ `get_batch`) and a shared sliding-window rate limit (`rate_limit`).
7
+ JoobQUI version 0.1.0; an SDK talks to a server of its own version or later.
8
+
9
+ - Requirements: Ruby 3.0 or newer; standard library only.
10
+ - Install: `gem install joobq`, or `gem "joobq"` in a Gemfile.
11
+ - Use: `require "joobq"` (the module `JoobQ`: `JoobQ::Client`, `JoobQ::Worker`).
12
+ - Connect: the server's origin and its SDK token, read by the examples from `JOOBQ_GATEWAY_URL` and `JOOBQ_SDK_TOKEN`.
13
+ - Documentation: https://www.joobq.io/docs/develop/ (workers, jobs, workflows, the gateway contract).
14
+
15
+ This package is generated from `templates/sdks/ruby` in https://github.com/azutoolkit/joobqui by
16
+ `joobqui-selfhosted sdk:generate`: change the templates, not the generated files.
17
+
18
+ ## License
19
+
20
+ MIT (see `LICENSE`).