diff --git a/oda_api/cli.py b/oda_api/cli.py index a515a871..96f694e0 100644 --- a/oda_api/cli.py +++ b/oda_api/cli.py @@ -195,6 +195,12 @@ def inspect_state(obj, store, job_id, local, group_by_job): for record in state['records']: logger.info(f"job_id: {record['job_id']}") # TODO which information should be printed? + for job_status_data in record['job_id']: + request_completed = job_status_data['request_completed'] + token_expired = job_status_data.get('token_expired', None) + scratch_dir_fn = job_status_data['scratch_dir_fn'] + session_id = scratch_dir_fn.split('_')[2] + logger.info(f"\tsession_id: {session_id}") def main(): cli(obj={})