Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-lister
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
Model registry
Operate
Environments
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
Platform
Development
swh-lister
Commits
45428c25
Verified
Commit
45428c25
authored
5 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
bitbucket: Unify logging instructions
parent
9aa8a6f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!376
bitbucket: Unify logging instructions
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swh/lister/bitbucket/tasks.py
+1
-1
1 addition, 1 deletion
swh/lister/bitbucket/tasks.py
swh/lister/core/indexing_lister.py
+3
-2
3 additions, 2 deletions
swh/lister/core/indexing_lister.py
with
4 additions
and
3 deletions
swh/lister/bitbucket/tasks.py
+
1
−
1
View file @
45428c25
...
...
@@ -35,7 +35,7 @@ def full_bitbucket_relister(self, split=None, **lister_args):
random
.
shuffle
(
ranges
)
promise
=
group
(
range_bitbucket_lister
.
s
(
minv
,
maxv
,
**
lister_args
)
for
minv
,
maxv
in
ranges
)()
self
.
log
.
debug
(
'
%s OK (spawned %s subtasks)
'
%
(
self
.
name
,
len
(
ranges
)))
self
.
log
.
debug
(
'
%s OK (spawned %s subtasks)
'
,
(
self
.
name
,
len
(
ranges
)))
try
:
promise
.
save
()
# so that we can restore the GroupResult in tests
except
(
NotImplementedError
,
AttributeError
):
...
...
This diff is collapsed.
Click to expand it.
swh/lister/core/indexing_lister.py
+
3
−
2
View file @
45428c25
...
...
@@ -218,15 +218,16 @@ class IndexingLister(ListerBase):
# termination condition
if
next_index
is
None
or
next_index
==
index
:
logger
.
info
(
'
stopping after index %s, no next link found
'
%
logger
.
info
(
'
stopping after index %s, no next link found
'
,
index
)
return
index
=
next_index
logger
.
debug
(
'
Index: %s
'
,
index
)
yield
i
for
i
in
ingest_indexes
():
if
(
i
%
20
)
==
0
:
logger
.
info
(
'
f
lushing updates
'
)
logger
.
debug
(
'
F
lushing updates
at index %s
'
,
i
)
self
.
db_session
.
commit
()
self
.
db_session
=
self
.
mk_session
()
...
...
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