Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-deps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
pipelines
tools
gitlab-deps
Commits
0cacea22
Commit
0cacea22
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Address py3 deprecation warnings
parent
f2730150
No related branches found
No related tags found
No related merge requests found
Pipeline
#59334
passed
1 year ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab_deps/server.py
+4
-7
4 additions, 7 deletions
gitlab_deps/server.py
with
4 additions
and
7 deletions
gitlab_deps/server.py
+
4
−
7
View file @
0cacea22
import
logging
import
logging
import
threading
import
threading
try
:
from
queue
import
Queue
import
Queue
except
ImportError
:
import
queue
as
Queue
from
cheroot
import
wsgi
from
cheroot
import
wsgi
from
flask
import
Flask
,
request
,
make_response
,
abort
from
flask
import
Flask
,
request
,
make_response
,
abort
...
@@ -11,7 +8,7 @@ from flask import Flask, request, make_response, abort
...
@@ -11,7 +8,7 @@ from flask import Flask, request, make_response, abort
from
.rebuild
import
rebuild
from
.rebuild
import
rebuild
queue
=
Queue
.
Queue
()
queue
=
Queue
()
def
_process_request
(
gl
,
project_deps
,
data
):
def
_process_request
(
gl
,
project_deps
,
data
):
...
@@ -61,8 +58,8 @@ def run_app(gl, project_deps, bind_host, bind_port,
...
@@ -61,8 +58,8 @@ def run_app(gl, project_deps, bind_host, bind_port,
wt
=
threading
.
Thread
(
wt
=
threading
.
Thread
(
target
=
worker_thread
,
target
=
worker_thread
,
args
=
(
gl
,
project_deps
),
args
=
(
gl
,
project_deps
),
name
=
'
Worker %d
'
%
(
i
+
1
)
)
name
=
'
Worker %d
'
%
(
i
+
1
)
,
wt
.
setD
aemon
(
True
)
d
aemon
=
True
)
wt
.
start
()
wt
.
start
()
# Start the HTTP server to receive webhook requests.
# Start the HTTP server to receive webhook requests.
...
...
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