Thomas
04/27/2022, 1:30 PM@op
def write_markdown_file(context, report: dict):
title = report['attributes']['title']
report_id = report["id"]
filename = f'{title.title()}.md'
filepath = output_folder / filename
with open(filepath, mode='w', encoding='utf8') as md:
md.write(report["markdown"])
context.log_event(
AssetMaterialization(
asset_key="report_markdown_file",
description="Report from strapi as markdown",
metadata={
"title": f'{title.title()}',
"report_id": report_id,
"report_markdown_file_path": MetadataValue.path(filepath)
}
)
)
return filepath
Postgres version
image:
registry: "<http://docker.io|docker.io>"
repository: "library/postgres"
tag: "9.6.21"
pullPolicy: IfNotPresent
and dagster.version
'0.14.10'Thomas
04/27/2022, 1:58 PM