Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed worker101 queue script to use new API.

  • Loading branch information...
commit ce4de5fdba456ff546e3c8b343e4376c2430ab48 1 parent 1a1a5df
@paddyforan paddyforan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/worker101/enqueue.py
View
4 python/worker101/enqueue.py
@@ -1,7 +1,7 @@
from iron_worker import *
-worker = IronWorker(token='XXXXXXXXXX', project_id='xxxxxxxxxxx')
+worker = IronWorker()
payload = {'pagerduty': {'query':'iron.io'}}
-task = worker.postTask(name='PythonWorker101', payload=payload)
+task = worker.queue(code_name='PythonWorker101', payload=payload)
Please sign in to comment.
Something went wrong with that request. Please try again.