Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Simone Rossi
main
Commits
90078a2d
Commit
90078a2d
authored
Dec 21, 2018
by
Simone Rossi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Sleep random time U(0.5s;2s) between submissions
parent
53013033
Pipeline
#11296
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
scripts/grid_queue.py
scripts/grid_queue.py
+2
-0
No files found.
scripts/grid_queue.py
View file @
90078a2d
...
...
@@ -316,6 +316,8 @@ def main():
continue
logger
.
info
(
'Job submitted with ID %d'
%
exec_id
)
job_ids
.
append
(
exec_id
)
import
random
time
.
sleep
(
random
.
uniform
(
0.5
,
2
))
else
:
logger
.
warning
(
'Quota exceeded. No jobs can be scheduled now! Sleeping'
)
...
...
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