Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
resif_amqp_worker
Commits
22c4a0de
Commit
22c4a0de
authored
Jul 22, 2021
by
Jonathan Schaeffer
Browse files
Utilisation du module python wfcatalog
parent
52510c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
amqpWorker.py
View file @
22c4a0de
...
...
@@ -145,12 +145,11 @@ def seedtree(content):
def
wfcatalog
(
content
):
# launch wfcatalog updates, 100 files for each run
wfcollector
=
WFCatalogCollector
()
wfcollector
=
WFCatalogCollector
(
to_stdout
=
True
)
for
chunk
in
grouper
(
content
.
splitlines
(),
50
):
logger
.
info
(
"launching WFCatalog collector on : %s"
%
str
(
chunk
))
files
=
json
.
dumps
(
chunk
)
wfcollector
.
process
({
'update'
:
True
,
'force'
:
True
,
'stdout'
:
True
,
'csegs'
:
True
,
'flags'
:
True
,
'list'
:
files
})
wfcollector
.
process
({
'update'
:
True
,
'force'
:
True
,
'csegs'
:
True
,
'flags'
:
True
,
'list'
:
files
})
if
__name__
==
"__main__"
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment