Origin
This is a fork of the original [sqjobs](https://github.com/igalarzab/sqjobs/)
Installation
Simply use pip to install the last version of sqjobs
pip install --upgrade sqjobs
Getting started
First you have to create jobs. A job is simply a class that inherits from Job.
from sqjobs import Job
class Adder(Job):
default_queue_name = 'queue_name'
def run(self, num1, num2):
return num1 + num2
Then, you can launch the job creating a new broker.
from sqjobs import create_sqs_broker
broker = create_sqs_broker(access_key='ak', secret_key='sk')
broker.add_job(AdderJob, 1, 2, queue_name='other_queue_name')
Documentation
Check out sqjobs’s documentation for further information.
Metadata
Release files for sqjobstf 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqjobstf-0.8.1.tar.gz | 17.6 kB | Details |
Release files / sqjobstf-0.8.1.tar.gz
| Download URL | sqjobstf-0.8.1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af51709ed9ebcf9b4888c8481ae4ef5d3750bb8b0756ac3fad4bcc5b00e2bd66
|
|
BLAKE2b-256 checksum How to use checksums |
1294a8580b056bc50ed4801c50a34cd869d112707d56955cdcd74aeb8d7fb7e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |