Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tasks
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
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Arkindex
Tasks
Commits
545c27a0
Commit
545c27a0
authored
1 year ago
by
ml bonhomme
Browse files
Options
Downloads
Patches
Plain Diff
Do not say 'elementS' in logs when there is only one (1) element
parent
cde5a11d
No related branches found
No related tags found
1 merge request
!376
Do not say 'elementS' in logs when there is only one (1) element
Pipeline
#162890
passed
1 year ago
Stage: release
Changes
1
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_tasks/init_elements.py
+4
-2
4 additions, 2 deletions
arkindex_tasks/init_elements.py
with
4 additions
and
2 deletions
arkindex_tasks/init_elements.py
+
4
−
2
View file @
545c27a0
...
...
@@ -173,7 +173,7 @@ class InitElements(object):
)
logger
.
info
(
f
"
Retrieved
{
len
(
unique_elements
)
}
element
s
from process
{
self
.
process_id
}
"
f
"
Retrieved
{
len
(
unique_elements
)
}
element
{
'
s
'
if
len
(
unique_elements
)
>
1
else
''
}
from process
{
self
.
process_id
}
"
)
duplicate_count
=
len
(
elements
)
-
len
(
unique_elements
)
...
...
@@ -216,7 +216,9 @@ class InitElements(object):
filename
=
f
"
db_
{
index
}
.sqlite
"
,
)
logger
.
info
(
f
"
Added
{
len
(
unique_elements
)
}
elements to workflow configuration
"
)
logger
.
info
(
f
"
Added
{
len
(
unique_elements
)
}
element
{
'
s
'
if
len
(
unique_elements
)
>
1
else
''
}
to workflow configuration
"
)
logger
.
info
(
"
Awaiting workers activity initialization
"
)
# Await worker activities to be initialized for 0, 2, 4, 8 seconds up to an hour
...
...
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