mirror of
https://github.com/simon987/task_tracker_drone.git
synced 2025-04-19 10:16:42 +00:00
Request access even if existing worker
This commit is contained in:
parent
5bcb671356
commit
5c03c7a942
@ -66,10 +66,10 @@ worker = Worker.from_file(api)
|
|||||||
if not worker:
|
if not worker:
|
||||||
worker = api.make_worker("drone")
|
worker = api.make_worker("drone")
|
||||||
worker.dump_to_file()
|
worker.dump_to_file()
|
||||||
projects = worker.get_project_list()
|
projects = worker.get_project_list()
|
||||||
for project in projects:
|
for project in projects:
|
||||||
r = worker.request_access(project["id"], assign=True, submit=False)
|
r = worker.request_access(project["id"], assign=True, submit=False)
|
||||||
print("Request access for %d r=%s" % (project["id"], r.text))
|
print("Request access for %d r=%s" % (project["id"], r.text))
|
||||||
|
|
||||||
print("Starting %d working contexts" % (THREAD_COUNT,))
|
print("Starting %d working contexts" % (THREAD_COUNT,))
|
||||||
for i in range(THREAD_COUNT):
|
for i in range(THREAD_COUNT):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user