Slide 177
Slide 177 text
Server
Group A Group X
Worker A Worker X
POST /tasks/claim
{
"groups": ["Group A"],
"client-id": "client-123",
"duration": 30000
}
Request Response
{
"cmd": [“my-program.py","url-to-data",
"settings"],
"group": "Group A",
"labels": {"my-label": "is-good",
"this-label": "is-helpful"}
"version": 1,
"id": "5292d800-cdda-11e8-87d7-9d45611d
"status": "available"
}
A Worker claims a task to work
on for a period of time.