Skip to content
Snippets Groups Projects
Commit f8c979b6 authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

set ionice priority of xrdcp commands according to config parameter

parent dd612656
Branches ionice
No related tags found
No related merge requests found
Pipeline #4983011 passed
...@@ -87,7 +87,11 @@ def backgroundcopy(srcfile, dstfile, stager, logger=None): ...@@ -87,7 +87,11 @@ def backgroundcopy(srcfile, dstfile, stager, logger=None):
del logger #unused args del logger #unused args
dstfile = 'root://%s/%s' % (stager, dstfile) dstfile = 'root://%s/%s' % (stager, dstfile)
cmd = ['xrdcp', '-f', '--nopbar', srcfile, dstfile]
cmd = []
if 'IONICE_PRIO' in config_dict:
cmd += ['ionice', '-n', config_dict['IONICE_PRIO']]
cmd += ['xrdcp', '-f', '--nopbar', srcfile, dstfile]
try: try:
cmd.append(config_dict['copy_extra_params']) cmd.append(config_dict['copy_extra_params'])
......
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