We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7557036 commit c9707d7Copy full SHA for c9707d7
1 file changed
fairworkflows/fairstep.py
@@ -438,15 +438,14 @@ def _modify_function(func):
438
inputs=inputs,
439
outputs=outputs)
440
441
- @functools.wraps
442
def _add_logging(func):
+ @functools.wraps(func)
443
def _wrapper(*func_args, **func_kwargs):
444
LOGGER.info(f'Running step: {func.__name__}')
445
return func(*func_args, **func_kwargs)
446
return _wrapper
447
- func = _add_logging(func)
448
func._fairstep = fairstep
449
- return noodles.schedule(func)
+ return noodles.schedule(_add_logging(func))
450
451
return _modify_function
452
0 commit comments