Volker L
03/04/2023, 10:35 AM"{\n \"key\": \"my_access_key\",\n \"secret\": \"my_super_secret_secret\",\n \"client_kwargs\": {\n \"endpoint_url\": \"<https://123456abcdefg.r2.cloudflarestorage.com>\"\n },\n \"s3_additional_kwargs\": {\n \"ACL\":\"private\"\n },\n}"
Is this a bug in the UI, or is there any “trick” to avoid this?Albert Wong
03/04/2023, 10:37 AMDeployment storage GitHub(repository='<'redacted'>, reference=None,
access_token=SecretStr('**********'), include_git_objects=True) does not have upload capabilities; no files uploaded. Pass --skip-upload to suppress
this warning.
This is after I execute the following deploy command:
prefect deployment build -n sync_repository_tables_flow -q default flows/sync_repository_tables_flow.py:sync_repository_tables_flow -a -sb github/prod-gbi-github-dataflowdeployments
Anyone know what I'm missing?Albert Wong
03/04/2023, 10:40 AMPaul Nwosu
03/04/2023, 11:33 AMDavid Frischer
03/05/2023, 3:58 PMregister_prefect_flow.py
script given by Kedro documentation. Unfortunately, I don't seem to succeed because Prefect 1.0 API is different from Prefect 2.0.
Thanks in advance !Ezzaldin Mamdouh
03/05/2023, 7:50 PMSamuel Hinton
03/05/2023, 11:21 PMfatin muhamad
03/06/2023, 4:26 AMSamuel Hinton
03/06/2023, 4:42 AMMohammad Kaif Rizvi
03/06/2023, 5:04 AMFilip Panovski
03/06/2023, 8:46 AMScript at 'data_exports/extract_data.py' encountered an exception: ModuleNotFoundError("No module named 'pandas'")
which kind of confuses me, since the host where I am creating the deployment is not where it will run. My questions boil down to:
1. Why does the CLI need to know pandas
(or any other library that I’m using)?
2. Does this mean that I should set up a different venv for every one of my deployments?Deceivious
03/06/2023, 9:17 AMcache_key_fn=task_input_hash,
cache_expiration=datetime.timedelta(hours=2),
persist_result=True,
result_storage=LocalFileSystem(), # Change to remote in future
result_serializer=JSONSerializer()
For every task call , I want to log the cache_key
, if the task returned the cached result OR if the result were cached. Is this supported by prefect by default? / What are the best practices for this type of logging to be implemented?Samuel Hinton
03/06/2023, 10:31 AMNo such file or directory
If anyone has any ideas as to what might be causing issues with S3 block file downloading or a way to debug it, please let me know!Tim-Oliver
03/06/2023, 10:42 AMcancel
all sub-flow-runs of a meta-flow-run iff the meta-flow-run is cancelled/cancelling
. Could I achieve this with a custom-trigger?Federico Zambelli
03/06/2023, 11:12 AMDavid P
03/06/2023, 1:46 PMRavi
03/06/2023, 1:52 PMFlorian Pape
03/06/2023, 2:28 PM{
"detail": "Method Not Allowed"
}
via API docs on prefect server
"detail": "Data integrity conflict. This usually means a unique or foreign key constraint was violated. See server logs for details."
Goal is to trigger a deplyoment/ flow from another when data was loaded by another tool.
Thanks in advance. 🙂Yaron Levi
03/06/2023, 2:55 PMclient.read_flow_runs(flow_filter=FlowFilter(created_at>xxx, created_at<xxx, name={"any_": ["flow1"]}), limit=5)
iñigo
03/06/2023, 3:08 PMLeon Kozlowski
03/06/2023, 3:23 PM2.7.10
and that I would benefit from upgrading, but the traceback below:
prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
06:30:38 AM
Robert Kowalski
03/06/2023, 3:56 PMflow
decorator and it is possible, but after this I have in UI ( in deployment section -> parameters ) only args and kwargs. I want see here param
. Is there a magical way to achieve this?
code:
from prefect import flow
from prefect.deployments import Deployment
def flow_wrapper(func):
default_retries = 3
@flow(name=func.__name__, retries=default_retries)
def wrapper(*args, **kwarg):
return func(*args, **kwarg)
return wrapper
@flow_wrapper
def tmp_flow(param: int = 1):
print(param)
if __name__ == '__main__':
# tmp_flow(param=1)
environment = 'prod'
Deployment.build_from_flow(
flow=tmp_flow,
name=environment,
path=f'.',
infra_overrides={"env": {
"PREFECT_LOGGING_LEVEL": "DEBUG",
}},
work_queue_name=environment,
apply=True,
work_pool_name=environment
)
Tim-Oliver
03/06/2023, 5:08 PMPeter
03/06/2023, 6:16 PMjack
03/06/2023, 6:40 PMMT
03/06/2023, 6:47 PMkubectl cluster-info
it is giving timeout error. In AWS, I see that cluster is created but it shows, there is a new version of Kubernetes.Do you think that updating cluster will resolve the issue? Because It also says there might be RBAC permission issues in auth config map.kasteph
03/06/2023, 7:56 PMValueError: Unable to find block document named my-uniq-bucket for block type gcs-bucket
• Prefect server and agent are running
• Deployment has been applied via : python gcs_example.py
Xavier Babu
03/06/2023, 8:04 PMkasteph
03/06/2023, 8:47 PMblocks/
folder for e.g.? Via the CI/CD as with deployments
?Austin Weisgrau
03/06/2023, 10:47 PMtoo many values to unpack
on prefect deployment build
Details in thread