INNER CODE UNIT · Python
export_execution_log
mlevit/aws-auto-cleanup · app/src/main.py:491
def export_execution_log(self, execution_log, aws_request_id):
"""Export a CSV file with all execution logs during run."""
try:
os.chdir(tempfile.gettempdir())
try:
_, temp_file = tempfile.mkstemp()
try:
with open(temp_file, "w") as output_file:
wr = csv.writer(output_file)
# write header
wr.writerow(
[
"platform",
"region",
"service",