Skip to content
forked from Carlosedo/sqjobs

Simple Queue Jobs (using SQS, Simple Queue Service, from AWS)

License

Notifications You must be signed in to change notification settings

Thinkful/sqjobs

 
 

Repository files navigation

sqjobs

Build Status Coverage Status

Origin

This is a fork of the original [sqjobs](https://github.com/igalarzab/sqjobs/)

Installation

Simply use pip to install the last version of sqjobstf

pip install --upgrade sqjobstf

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.

Releasing a new version

See https://packaging.python.org/tutorials/packaging-projects/

In a Python2.7 virtualenv, run pip install ` pip install -r requirements/base.txt pip install twine build`

Create a new build: ` python -m build`

Publish the new release - you will need the credentials for accessing pypi.org ` twine upload dist/*`

About

Simple Queue Jobs (using SQS, Simple Queue Service, from AWS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%