Francois van Heerden
02/09/2022, 8:09 PMArtifacts
api? I’m currently using the server backed and a local agent.Kevin Kho
create_link_artifact
Francois van Heerden
02/10/2022, 6:06 AMcreate_link_artifact("file:///<full_path>")
but this created a link with localhost:8080/default/flow-run
prepended on the host machine and <host_ip>:8080/flow_run
on a remote machine, casing a 404 error when accessing the link.Kevin Kho
Francois van Heerden
02/10/2022, 3:11 PM@task(name='Link Document')
def link_document(path):
# create_link_artifact('file:///{}'.format(path.replace('\\', '/')))
create_markdown_artifact("Report available at [link](\"file:///{}\").".format(path))
These are the two methods I tried. The create_markdown_artifact
creates an empty link, while the create_link_artifact
produces the link with server path prepended as described above.Kevin Kho
Francois van Heerden
02/10/2022, 3:34 PM<object data="{}" type="application/pdf" width="700px" height="700px">
<embed src="{}">
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="{}">Download PDF</a>.</p>
</embed>
</object>
But I understand that this might be a challenge, as the server is running in a Docker container with no access to the file system.Kevin Kho
Francois van Heerden
02/10/2022, 3:46 PM