Skip to main content

Simple Queue Jobs

Project description

Build Status Coverage Status

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqjobs-0.7.1.tar.gz (16.9 kB view details)

Uploaded Source

File details

Details for the file sqjobs-0.7.1.tar.gz.

File metadata

  • Download URL: sqjobs-0.7.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sqjobs-0.7.1.tar.gz
Algorithm Hash digest
SHA256 637605e028e953cc31dd2e3dd64388bf213305b491c4128457543a35da6a346b
MD5 389776055ed65743d65e49cbdee999b8
BLAKE2b-256 020f5212d33822911470e61c6b755e42e1d259d83b4cd8eeee499c3c5c2a8b1f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page