Skip to content

Commit

Permalink
add process container logs to tool output
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusStrobl committed Apr 5, 2024
1 parent 8c60994 commit 4237d51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion processes/tool_vforwater_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def execute(self, data):
network_mode = 'host'
command = ["python", "/src/run.py"]

# ________________ run container _________________________
# use python podman
error = 'none'
status ='failed'
Expand All @@ -296,6 +297,7 @@ def execute(self, data):

status = container.status
logging.info(f"Podman status before remove is {status}")
tool_logs = container.logs
# container.remove()
except Exception as e:
print(f'Error running Podman: {e}')
Expand Down Expand Up @@ -331,7 +333,8 @@ def execute(self, data):
'geoapi_status': res,
'value': res,
'dir': host_path_out,
'error:': error
'error:': error,
'tool_logs': tool_logs
}

logging.info(f'Finished execution of vforwater loader. return {mimetype, outputs}')
Expand Down

0 comments on commit 4237d51

Please sign in to comment.