Skip to content

Commit

Permalink
Merge pull request #76 from m3dev/dev_task_log
Browse files Browse the repository at this point in the history
add file path in task log
  • Loading branch information
nishiba authored Aug 10, 2019
2 parents f4cbfdf + d894395 commit 27e5c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gokart/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def get_task_log(self) -> Dict:

@luigi.Task.event_handler(luigi.Event.SUCCESS)
def _dump_task_log(self):
self.task_log['file_path'] = [target.path() for target in luigi.task.flatten(self.output())]
self.dump(self.task_log, self._get_task_log_target())

def _get_task_params_target(self):
Expand Down

0 comments on commit 27e5c08

Please sign in to comment.