Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
dashboardv3
inventory-provider
Commits
990e9ab8
Commit
990e9ab8
authored
4 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
c62de765
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inventory_provider/routes/jobs.py
+7
-5
7 additions, 5 deletions
inventory_provider/routes/jobs.py
with
7 additions
and
5 deletions
inventory_provider/routes/jobs.py
+
7
−
5
View file @
990e9ab8
import
json
import
logging
import
queue
import
random
import
threading
from
distutils.util
import
strtobool
import
jsonschema
from
flask
import
Blueprint
,
current_app
,
jsonify
,
Response
,
request
from
inventory_provider.tasks
import
common
as
tasks_common
from
inventory_provider.tasks
import
worker
from
inventory_provider.routes
import
common
from
inventory_provider.tasks.common
import
get_current_redis
,
get_latch
...
...
@@ -83,10 +89,6 @@ LOG_ENTRY_SCHEMA = {
"
additionalProperties
"
:
True
}
import
queue
import
random
import
threading
from
inventory_provider.tasks
import
common
as
tasks_common
def
_redis_client_proc
(
key_queue
,
value_queue
,
params
):
try
:
...
...
@@ -146,7 +148,7 @@ def load_task_log():
value
=
response_queue
.
get
()
if
not
value
:
num_finished
+=
1
logger
.
debug
(
f
'
one worker thread finished
'
)
logger
.
debug
(
'
one worker thread finished
'
)
continue
info
=
tasks
.
setdefault
(
value
[
'
uuid
'
],
{})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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