Skip to content

Commit

Permalink
update logs. fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Aug 9, 2023
1 parent 2832e24 commit 5349acc
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,8 @@ def archive(self, archive, pipeline, params, logger):
path=os.path.join(archive_output_dir, filename),
file=blob,
_x_tapis_tenant=params.tapis_tenant_id,
_x_tapis_user=archive.owner,
# _x_tapis_token=service_client.service_tokens["admin"]["access_token"].access_token
# headers={
# "X-Tapis-Tenant": params.tapis_tenant_id,
# "X-Tapis-User": archive.owner,
# "X-Tapis-Token": service_client.service_tokens["admin"]["access_token"].access_token
# }
_x_tapis_user=archive.owner
)
logger.info(f"[PIPELINE] {pipeline.id} [ARCHIVED] {path_to_file}")
logger.info(f"[PIPELINE] {pipeline.id} [ARCHIVED] {filename}")
except Exception as e:
logger.error(f"FAILED TO ARCHIVE TASK '{task.id}' OUTPUT '{filename}': {e}")
logger.error(f"FAILED TO ARCHIVE OUTPUT '{filename}' FOR TASK '{task.id}': {e}")

0 comments on commit 5349acc

Please sign in to comment.