Skip to content

Commit 82f340d

Browse files
Ryan CaliRyan Cali
authored andcommitted
Initial attempt at adding infile tracking
1 parent 67f7e72 commit 82f340d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pydra/engine/audit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,18 @@ def audit_task(self, task):
177177
else:
178178
# work on changing this to function name
179179
command = None
180+
if hasattr(task.inputs, "in_file"):
181+
inputs = task.inputs.in_file
182+
else:
183+
inputs = None
180184

181185
start_message = {
182186
"@id": self.aid,
183187
"@type": "task",
184188
"label": label,
185189
"command": command,
186190
"startedAtTime": now(),
191+
"Used": inputs
187192
}
188193
self.audit_message(start_message, AuditFlag.PROV)
189194

0 commit comments

Comments
 (0)