Commit 7c90e010 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

todo

parent d9944795
......@@ -119,6 +119,7 @@ def rate_limit(period):
t1 = time.monotonic()
delay = t0 - t1 + period
if delay > 0:
log.debug("rate_limit: sleep %f seconds", delay)
time.sleep(delay)
t0 = t1 + delay
else:
......@@ -158,6 +159,7 @@ def cascade_future(src, dst):
else:
src.add_done_callback(callback)
class Manager:
"""A class for scheduling asynchronous jobs on a collection of keys
......@@ -496,6 +498,7 @@ class SandboxManager(Manager):
if version is None and webapp.entrypoint:
# prepend instructions to initialise a dummy entrypoint
dn, bn = os.path.split(webapp.entrypoint)
# FIXME: do nothing if entrypoint already exists
command = ["/bin/sh", "-c", """
{mkdir}
cat > {entrypoint!r} <<EOF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment