EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit acdc4871 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Adjusting for multi-item registration

parent 2eaa3dff
No related branches found
No related tags found
1 merge request!55Production release 1.2.0
......@@ -24,9 +24,10 @@ def run_daemon(config, replace, host, port, listen_queue, progress_set, failure_
client.sadd(progress_set, value)
# start the registration on that file
try:
item = register_file(config, value, replace)
client.sadd(success_set, item.identifier)
client.srem(progress_set, value)
items = register_file(config, value, replace)
for item in items:
client.sadd(success_set, item.identifier)
client.srem(progress_set, value)
except Exception as e:
if 'is already registered' not in "%s" % e:
# do not add to failure if skipped due to already registered
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment