Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exposure-initializer
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
Model registry
Operate
Environments
Terraform modules
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
Global Dynamic Exposure
exposure-initializer
Commits
154b84b1
Commit
154b84b1
authored
1 year ago
by
Laurens Oostwegel
Browse files
Options
Downloads
Patches
Plain Diff
Add info statement
parent
fa2f8262
Branches
morocco_dev
No related tags found
No related merge requests found
Pipeline
#64552
passed
1 year ago
Stage: tests
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exposureinitializer/exposureinitializer.py
+3
-3
3 additions, 3 deletions
exposureinitializer/exposureinitializer.py
with
3 additions
and
3 deletions
exposureinitializer/exposureinitializer.py
+
3
−
3
View file @
154b84b1
...
...
@@ -36,7 +36,7 @@ from taxonomylib import Taxonomy
# Add a logger printing error, warning, info and debug messages to the screen
logger
=
logging
.
getLogger
()
logger
.
setLevel
(
logging
.
INFO
)
logger
.
setLevel
(
logging
.
WARNING
)
logger
.
addHandler
(
logging
.
StreamHandler
(
sys
.
stdout
))
...
...
@@ -236,7 +236,8 @@ class ExposureInitializer:
time
.
sleep
(
10
)
logger
.
info
(
"
All districts are processed.
"
)
logger
.
info
(
f
"
Length queue:
{
queue
.
qsize
()
}
"
)
if
queue
.
qsize
()
>
0
:
logger
.
warning
(
f
"
Queue was not empty. Queue size:
{
queue
.
qsize
()
}
\n
"
)
# Close and join the pool
pool
.
terminate
()
...
...
@@ -255,7 +256,6 @@ class ExposureInitializer:
exposure_db
=
copy
.
copy
(
self
.
exposure_db
)
exposure_db
.
connect
()
while
True
:
logger
.
info
(
'
getting input...
'
)
try
:
_input
=
queue
.
get
(
timeout
=
5
)
except
Empty
:
...
...
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