Skip to content
Snippets Groups Projects
Commit 79968cb8 authored by Martin Blanchard's avatar Martin Blanchard
Browse files

bots/dummy.py: Return an empty action result

parent b27dabd7
No related branches found
No related tags found
1 merge request!99Core job and scheduler refactoring
......@@ -16,9 +16,18 @@
import random
import time
from buildgrid._protos.build.bazel.remote.execution.v2 import remote_execution_pb2
def work_dummy(context, lease):
""" Just returns lease after some random time
"""
lease.result.Clear()
time.sleep(random.randint(1, 5))
action_result = remote_execution_pb2.ActionResult()
lease.result.Pack(action_result)
return lease
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment