Skip to content

Commit

Permalink
Issue #3288. Added logger entry when retry is triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
sulantha2006 committed Jan 8, 2021
1 parent d6dd60c commit 87ab436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nipype/pipeline/engine/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,11 @@ def _get_inputs(self):
except traits.TraitError as e:
traits_err = e
if input_tries != 1:
time.sleep(input_retry_delay*try_n*input_retry_exp_backoff_factor)
sleep_time = input_retry_delay*try_n*input_retry_exp_backoff_factor
logger.warning("Input set failed for : {0} -> {1}. Retrying in {2} secs. ".format(key,
results_fname,
sleep_time))
time.sleep(sleep_time)
if traits_err is not None:
msg = (
traits_err.args[0],
Expand Down

0 comments on commit 87ab436

Please sign in to comment.