Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
7c90e010
Commit
7c90e010
authored
Feb 02, 2017
by
BAIRE Anthony
Browse files
todo
parent
d9944795
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/controller.py
View file @
7c90e010
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment