Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (11 sloc) 0.617 kb
from iron_worker import *
import airbrakepy
import shutil
worker = IronWorker(token='XXXXXXXXXX', project_id='xxxxxxxxxxx')
#here we have to include AirbrakePy library with worker.
worker_dir = os.path.dirname(__file__) + '/airbrake'
abrakepy_dir = os.path.dirname(airbrakepy.__file__)
shutil.copytree(abrakepy_dir, worker_dir + '/airbrakepy') #copy it to worker directory
IronWorker.zipDirectory(directory="airbrake/", destination='worker.zip', overwrite=True)
res = worker.postCode(runFilename='worker.py', zipFilename='worker.zip', name='Airbrake.py sample')
task = worker.postTask(name='Airbrake.py sample')
Jump to Line
Something went wrong with that request. Please try again.