rafaqat ali
03/02/2021, 12:41 PMGreg Roche
03/02/2021, 12:45 PMprefect backend server before running prefect agent local start ?rafaqat ali
03/02/2021, 12:46 PMGreg Roche
03/02/2021, 12:47 PMprefect backend server before starting the agent. You don't need to generate any tokens in order for agents to be able to connect to Prefect Server.rafaqat ali
03/02/2021, 12:47 PMrafaqat ali
03/02/2021, 1:02 PMGreg Roche
03/02/2021, 1:05 PMGreg Roche
03/02/2021, 1:35 PMOn the other hand if you register a flow that has environment labels set toand run an Agent with the labels["dev", "staging"]then it will not pick up the flow because there exists labels in the environment which were not provided to the agent.["dev"]
rafaqat ali
03/02/2021, 1:36 PMrafaqat ali
03/02/2021, 1:39 PMrafaqat ali
03/02/2021, 1:43 PMrafaqat ali
03/02/2021, 1:44 PMwith Flow("Test run", run_config=DockerRun(labels=["dev"])) as flow:
flow.add_task(say_hello())
flow.register("Test")rafaqat ali
03/02/2021, 2:47 PMGreg Roche
03/02/2021, 3:11 PMfoo.rstrip() where the value of foo is None .Greg Roche
03/02/2021, 3:13 PMfoo = None
foo.rstrip("a")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'rstrip'rafaqat ali
03/02/2021, 4:01 PM