Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 8d2106372f
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.739 kb
from simple_worker_pip import *
import sys
import random
import string
import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('config.ini')
token = config.get("IronWorker", "token" )
host = config.get("IronWorker", "host" )
port = config.get("IronWorker", "port" )
version = config.get("IronWorker", "version")
protocol = config.get("IronWorker", "protocol")
project_id = config.get("IronWorker", "defaultProjectId")
sw = SimpleWorker(host, port, version, token, protocol)
name = "nested-" + str(time.time())
ret = sw.postCode(project_id, name, "nestedTask.py", "nested.zip")
print str(ret)
ret = sw.postTask(project_id, name)
print "postTask returned: " + str(ret)
task_id = ret['tasks'][0]['id']
Jump to Line
Something went wrong with that request. Please try again.