mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 15:55:49 -04:00
Merge 4310912c745920d7ff287d2eb6dd2dd9a1bf6172 into 42b4a88c963eb480b3c19117c19eac7e146fa8ff
This commit is contained in:
commit
85034b0cf0
@ -803,6 +803,12 @@ class Browser:
|
||||
lambda: self.websock_thread.received_result(msg_id), timeout=5
|
||||
)
|
||||
msg = self.websock_thread.pop_result(msg_id)
|
||||
|
||||
self.logger.info("Behavior status is %s", str(msg))
|
||||
# Behavior response while still running
|
||||
# {'id': 8, 'result': {'result': {'type': 'boolean', 'value': False}}}
|
||||
# Behavior response when finished
|
||||
# {'id': 9, 'result': {'result': {'type': 'boolean', 'value': True}}}
|
||||
if (
|
||||
msg
|
||||
and "result" in msg
|
||||
@ -814,7 +820,10 @@ class Browser:
|
||||
and isinstance(msg["result"]["result"]["value"], bool)
|
||||
and msg["result"]["result"]["value"]
|
||||
):
|
||||
self.logger.info("behavior decided it has finished")
|
||||
self.logger.info(
|
||||
"behavior decided it has finished after %.1fs",
|
||||
time.time() - start,
|
||||
)
|
||||
return
|
||||
except BrowsingTimeout:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user