Charles Liu
04/21/2021, 6:25 PMKayvan Shah
04/21/2021, 6:39 PM~/.prefect/config.toml
in Windows 10Charles Liu
04/21/2021, 9:55 PMdata = results.write(df, **prefect.context)
print(data)
Ismail Cenik
04/22/2021, 12:49 AMHawkar Mahmod
04/22/2021, 10:59 AMPREFECT__CLOUD__AUTH_TOKEN
if the prefect auth login
requires a token to authenticate? Are these incompatible options. I am trying to authenticate with Cloud backend during a CI deployment and have set the env var for the auth token, but my flow fails to register.Kayvan Shah
04/22/2021, 12:37 PMkevin
04/22/2021, 7:07 PMFile "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 978, in create_flow_run
res = self.graphql(create_mutation, variables=dict(input=inputs))
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 275, in graphql
result = <http://self.post|self.post>(
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 230, in post
response = self._request(
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 373, in _request
token = self.get_auth_token()
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 503, in get_auth_token
self._refresh_access_token()
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 618, in _refresh_access_token
payload = self.graphql(
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 294, in graphql
raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['refresh_token'], 'message': 'Unauthorized', 'extensions': {'code': 'FORBIDDEN'}}]
matta
04/23/2021, 1:53 AMJosh
04/23/2021, 7:31 AMapply_map
in conjunction with skipped tasks.
At least one upstream state has an unmappable result.
Kostas Chalikias
04/23/2021, 8:40 AMSebastian
04/23/2021, 9:23 AMVincent Chéry
04/23/2021, 1:02 PMprefect.utilities.notifications.slack_notifier
behind a proxy. A search in the docs and in the slack community give nothing so before submitting a new issue I wanted to check if I was not missing something ! 🙂 ThanksWilliam MacMillan
04/23/2021, 3:43 PMjames.lamb
04/23/2021, 4:11 PMKevin Kho
04/23/2021, 5:29 PMLink▾
Kevin Kho
04/23/2021, 7:58 PMLaura is going live soon!▾
Enda Peng
04/23/2021, 10:41 PMEnda Peng
04/24/2021, 3:41 PM--no-hostname-label
flow.register(project_name="tester", labels=["foo"])
Robert Bastian
04/24/2021, 5:40 PMFile "/usr/local/lib/python3.9/site-packages/prefect/utilities/storage.py", line 86, in extract_flow_from_file
exec(contents, exec_vals)
File "<string>", line 10, in <module>
File "/usr/local/lib/python3.9/site-packages/box/box.py", line 501, in __getattr__
raise BoxKeyError(str(err)) from _exception_cause(err)
box.exceptions.BoxKeyError: "'Config' object has no attribute 'direct'"
I’ve further noticed that if references to config are embedded in tasks that it works. Only when referencing config from a Flow context does this error occur. Is there a workaround for this? It seems strange that I have to install all my environment variables to register a flow when its the Agent that is pushing the envvars into the run-time configuration.Vladislav Bogucharov
04/25/2021, 1:34 PMdario
04/25/2021, 2:52 PMgroups = [
[1, 3, 5],
[2, 4, 6],
]
I need to process each ID individually, the problem is that each group of IDs can be parallelized but each group in the list depends on the previous group being fully processed first, like:
for group in groups:
process_id.map(group) # `process_id` has side effects that affect the result of the next group of IDs
is there a way to process the groups in such a way that the each group is parallelized though map
but the groups themselves are processed sequentially?Marz
04/25/2021, 8:20 PMTushar Kaithakkulam
04/25/2021, 11:56 PM@task(name="process_document")
def process_document(document):
processed_document = process_document_pages.map(document)
return processed_document
with Flow(name="Local Test") as flow:
documents = process_document.map(documents)Valentin Willscher
04/26/2021, 1:46 AMBhavya M
04/26/2021, 5:53 AMBaptiste M
04/26/2021, 11:48 AM[2021-04-26 09:20:28,684] INFO - fargate-launch | Found 1 flow run(s) to submit for execution.
[2021-04-26 09:20:31,589] INFO - fargate-launch | Deploying flow run '6021f038-6c79-4e78-862a-e29143f7d205'
[2021-04-26 09:20:31,590] ERROR - fargate-launch | Logging platform error for flow run 6021f038-6c79-4e78-862a-e29143f7d205
[2021-04-26 09:20:34,079] ERROR - fargate-launch | Error while deploying flow
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/prefect/agent/agent.py", line 414, in deploy_and_update_flow_run
deployment_info = self.deploy_flow(flow_run)
File "/home/ubuntu/.local/lib/python3.8/site-packages/prefect/agent/ecs/agent.py", line 296, in deploy_flow
taskdef = self.generate_task_definition(flow_run, run_config)
File "/home/ubuntu/.local/lib/python3.8/site-packages/prefect/agent/ecs/agent.py", line 370, in generate_task_definition
taskdef["family"] = f"prefect-{slug}"
TypeError: 'str' object does not support item assignment
Do you have any idea ? I didn't try to restart the agent, because I want to find the reason of this failure without resolving it just with a restart.
Thanks !emre
04/26/2021, 12:04 PMjsonresult = LocalResult(
location="{flow_id}_{task_full_name}_{flow_run_name}_ignore.json",
serializer=JSONSerializer(),
)
and the task in question:
Hey guys, im trying to set up caching for a project i am running locally, with a local prefect server instance. For individual tasks cache works fine. but for mapped tasks the following happens:
The first task runs, caches its output. The other mapped tasks just assume the first tasks output is a valid cache, and use that. Here is the result object:
jsonresult = LocalResult(
location="{flow_id}_{task_full_name}_{flow_run_name}_ignore.json",
serializer=JSONSerializer(),
)
and the task in question:
colmatch = MatchColumns(
result=jsonresult, cache_for=timedelta(days=14)
).map(
table_metadata=some_list
)
Any ideas why this would happen, and how I can prevent it?flavienbwk
04/26/2021, 1:03 PM<http://universal.prefect.io|universal.prefect.io>
. Does anyone know what's the problem ? Thanks.
ps: I've already cleared my cookies (and tried with Chrome incognito mode).
ps: I'm using the Docker image "prefecthq/ui:2021-04-23"
Enda Peng
04/26/2021, 3:56 PMfoo
image
• Run a command to register flow to cloud
• Build and ship foo
image based on prefect/prefecthq
image - in the docker file, I have to copy the code to somewhere like /app/
and set it as workdir
It works, but I am curious about whether somewhere can be improved. Thank you!Brian Bergeron
04/26/2021, 4:33 PMBrian Bergeron
04/26/2021, 4:33 PM