Closed josharnoldjosh closed 5 years ago
Hi @josharnoldjosh - this level of functionality is abstracted away such that you don't need to think about it. If the onboarding world returns episode done as true, the workers are put into a waiting pool until another eligible worker also is in the pool, and then the pairing process happens automatically.
I would suggest you move over to the react implementation as shown in the react demos, as the html implementation is being deprecated in the near future (less stability, more bugs, harder to maintain).
Hello, I am trying to create a custom task very similar to personachat or multi agent chat with HTML where two turkers are matched and chat between each other.
Currently, I am working on onboarding the turkers where two turkers are matched.
I created a
run.py
where I include an onboarding world:And then I created a simple world in
worlds.py
Then I created an
onboarding_index.html
page that's really simple:I figured out by extending the
core.html
I can implement thehandle_new_message
function to receive packets via websocket from theagent.observe()
function.However, I am not sure where to go next to ensure I can connect two turkers to a task and successfully complete the onboarding world episode and move to the next.
I've checked the documentation and it is very high level. The example code looks high level too.
How can I implement the functionality for two turkers to be matched, then as soon as they are matched, the onboarding episode finishes and they begin the task? I.e, move from the onboard task to the "start task":
Thanks!