Tom Klein
12/16/2021, 12:03 AMKevin Kho
Tom Klein
12/16/2021, 12:11 AMpoc
) and i try to give the same one to the flow i register but it also gets the host label…
• even after i manually remove this label manually through the GUI, and try to run the flow - i get an error i don’t understand:from prefect import task, Flow
from prefect.backend.artifacts import create_markdown_artifact
import requests
@task
def fetch():
res = requests.get('<https://xkcd.com/454/info.0.json>')
j = res.json()
print(j)
mrkdwn = "# My XKCD\n\n ![" + j['alt']+ "](" + j['img'] + ")"
create_markdown_artifact(mrkdwn)
with Flow('xkcd') as flow:
fetch()
prefect register --project poc -p xkcd.py -l poc
agent was started with:
prefect agent docker start --key "XXX" -l poc
Kevin Kho
add_default_label=False
to your Storage. The default is localTom Klein
12/16/2021, 12:15 AMKevin Kho
.prefect
folder by default. When the agent picks up the flow run, it goes to this place to fetch the flow and run it.Tom Klein
12/16/2021, 12:17 AMKevin Kho
Tom Klein
12/16/2021, 12:21 AMKevin Kho
Tom Klein
12/16/2021, 12:23 AMDockerRun
the default for docker agents?Kevin Kho
Tom Klein
12/16/2021, 12:24 AMDockerAgent
do when it gets a UniversalRun
flow to run?Docker
?Kevin Kho
Tom Klein
12/16/2021, 12:26 AMDocker Storage
is that it expects a registry (so it becomes no better than using S3 which would now involve permissions etc. which im trying to avoid for the time being)
Whoops nvm i see that’s optionalDocker Agents
run flows who are configured with the Module Storage
? not sure what the module storage means (and it didn’t work when i tried, anyway)
i guess it needs to be available in the docker imageKevin Kho
Tom Klein
12/16/2021, 12:33 AMKevin Kho
Tom Klein
12/16/2021, 12:34 AMKevin Kho
Tom Klein
12/16/2021, 12:36 AMKevin Kho
Tom Klein
12/16/2021, 12:46 AMKevin Kho
Tom Klein
12/16/2021, 12:49 AMKevin Kho
Tom Klein
12/16/2021, 1:02 AM