https://dagster.io/ logo
#ask-community
Title
# ask-community
t

Thomas

04/27/2022, 1:30 PM
Hello, I tried to materialize Asset and I face this issue : AttributeError: 'PostgresEventLogStorage' object has no attribute 'store_asset' This is the op so I guess nothing special ?
Copy code
@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
Copy code
image:
      registry: "<http://docker.io|docker.io>"
      repository: "library/postgres"
      tag: "9.6.21"
      pullPolicy: IfNotPresent
and dagster.version '0.14.10'
daggy success 1
I add a missmatched between dagster an the plugin ! Sorry for the mistake 🙂
condagster 1
2 Views