Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inau
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
util
inau
Commits
42ac6e73
Commit
42ac6e73
authored
4 years ago
by
Alessio Igor Bogani
Browse files
Options
Downloads
Patches
Plain Diff
Add a 5 seconds sleep between fetches
parent
ae16fb19
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inau.py
+2
-0
2 additions, 0 deletions
inau.py
with
2 additions
and
0 deletions
inau.py
+
2
−
0
View file @
42ac6e73
import
logging
import
logging
import
argparse
import
argparse
import
datetime
import
datetime
import
time
import
ldap
import
ldap
import
base64
import
base64
import
json
import
json
...
@@ -1221,6 +1222,7 @@ def build():
...
@@ -1221,6 +1222,7 @@ def build():
try
:
try
:
gitrepo
,
newAtags
=
updateRepo
(
Repositories
.
query
\
gitrepo
,
newAtags
=
updateRepo
(
Repositories
.
query
\
.
filter
(
Repositories
.
name
==
distinctRepo
.
name
).
first
())
.
filter
(
Repositories
.
name
==
distinctRepo
.
name
).
first
())
time
.
sleep
(
5
)
for
atag
in
newAtags
:
for
atag
in
newAtags
:
for
repo
in
Repositories
.
query
\
for
repo
in
Repositories
.
query
\
.
filter
(
Repositories
.
name
==
distinctRepo
.
name
).
all
():
.
filter
(
Repositories
.
name
==
distinctRepo
.
name
).
all
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment