Skip to content

Commit

Permalink
print_trace
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Nov 15, 2023
1 parent 3302b38 commit a32c2b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qiita_db/processing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,20 @@ def complete_processing_job(self):
return ProcessingJob(result[0])
return None

@property
def print_trace(self):
""" Prints the full trace of the job, from it self to validators
and complete jobs"""
print(f'{self.id} [{self.external_id}] - {self.command.name}')
cjob = self.complete_processing_job
print(f' {cjob.id} [cjob.external_id]')
vjob = self.release_validator_job
print(f' {vjob.id} [vjob.external_id]')
for v in self.validator_jobs:
print(f' {v.id} [{v.external_id}] - {v.command.name}')
cjob = v.complete_processing_job
print(f' {cjob.id} [cjob.external_id]')


class ProcessingWorkflow(qdb.base.QiitaObject):
"""Models a workflow defined by the user
Expand Down

0 comments on commit a32c2b2

Please sign in to comment.