Worker id
This commit is contained in:
parent
a9f82a5feb
commit
bbd5c20d3b
1 changed files with 1 additions and 0 deletions
|
@ -355,6 +355,7 @@ class DrawPageHandler(tornado.web.RequestHandler):
|
||||||
# new assignment
|
# new assignment
|
||||||
logger.warning(f"Create new assignment {assignmentId}")
|
logger.warning(f"Create new assignment {assignmentId}")
|
||||||
assignment = self.store.newAssignment(self.store.currentHit, assignmentId)
|
assignment = self.store.newAssignment(self.store.currentHit, assignmentId)
|
||||||
|
assignment.worker_id = str(self.get_query_argument('workerId', ''))
|
||||||
self.store.saveAssignment(assignment)
|
self.store.saveAssignment(assignment)
|
||||||
logger.info(f"Set close timeout for {self.store.getHitTimeout()}")
|
logger.info(f"Set close timeout for {self.store.getHitTimeout()}")
|
||||||
Server.loop.asyncio_loop.call_later(self.store.getHitTimeout(), WebSocketHandler.timeoutConnectionForAssignment, assignment.assignment_id)
|
Server.loop.asyncio_loop.call_later(self.store.getHitTimeout(), WebSocketHandler.timeoutConnectionForAssignment, assignment.assignment_id)
|
||||||
|
|
Loading…
Reference in a new issue