many-processor-72561
08/16/2023, 5:49 PMfor task in Step(f'{flow_name}/{run_id_}/{step_name}'):
for log_line in task.loglines(stream="stdout"):
log_text = log_line[1]
print(log_text)ancient-application-36103
08/17/2023, 3:25 PMtask_path_spec , attempt=attempt=0 ).stdout will get you the stdout logs for the first attemptmany-processor-72561
08/17/2023, 3:29 PMtask_path_spec?ancient-application-36103
08/17/2023, 3:30 PM{flow_name}/{run_id_}/{step_name}/{task_id}many-processor-72561
08/17/2023, 4:11 PMt = Task(f'{flow_name}/{run_id_}/{step_name}/{task_id}', attempt=0)
for log_line in t.loglines(stream="stdout"):
log_text = log_line[1]
print(log_text)
or
t = Task(f'{flow_name}/{run_id_}/{step_name}/{task_id}', attempt=1)
for log_line in t.loglines(stream="stdout"):
log_text = log_line[1]
print(log_text)
I still get the logs for the first attempt insteaad of getting the logs for the second attempt when I use attempt=1ancient-application-36103
08/17/2023, 4:13 PMTask(f'{flow_name}/{run_id_}/{step_name}/{task_id}', attempt=1) and Task(f'{flow_name}/{run_id_}/{step_name}/{task_id}')ancient-application-36103
08/17/2023, 4:13 PMmany-processor-72561
08/17/2023, 4:27 PM