Maciej
05/16/2023, 2:14 PM.map
seems like a good choice, but won't it make the Flow Runs UI
cluttered and not usable ? In your experience, how do you see people solve this problem ?Chris Gunderson
05/16/2023, 2:16 PMomarsultan
05/16/2023, 2:41 PMAndré Dias
05/16/2023, 3:34 PMFlow Config
and assign Storage
to a Docker
type and pass it the ECR registry_url, image_tag, etc.
When trying to configure the same thing for Prefect 2 I came across the Docker Registry Block that I would assume it would be compatible with ECR but it asks me for username and password credentials while we use rotating creds as authorization tokens for ECR are usually temporary. What are the best practices in Prefect 2 to communicate and retrieve the flow code stored in Amazon ECR?Marco Barbero Mota
05/16/2023, 5:56 PM@task(LocalResult(dir='path/to/folder/for/storage),target='result.pkl',checkpoint=True)
2. In prefect 1.0, if a task returns a dictionary and I specify as above how to locally cache why may be getting that result.pkl
only saves the last element in the dictionry?
Thanks,John-Craig Borman
05/16/2023, 6:32 PMTrevor Sweeney
05/16/2023, 8:22 PMaccess_token: "{{ prefect.blocks.github-credentials.example-token }}"
but my agent is unable to retrieve this properly and I receive a "fatal: unable to access.. URL using bad/illegal format or missing URL"
message. what am I doing wrong here? thanks in advanceMitch
05/16/2023, 9:04 PMTrevor Sweeney
05/16/2023, 10:44 PM22:40:17.227 | INFO | Flow run 'peach-flamingo' - Finished in state Completed('All states completed.')
22:40:19.792 | INFO | prefect.infrastructure.process - Process 'peach-flamingo' exited cleanly
Chris Goddard
05/17/2023, 1:29 AMAnna Gerlich
05/17/2023, 6:58 AMDimosthenis Schizas
05/17/2023, 9:24 AMAjeel Ahmed
05/17/2023, 10:46 AMAjeel Ahmed
05/17/2023, 10:47 AMAjeel Ahmed
05/17/2023, 10:53 AMprefect.infrastructure
’s DockerContainer
and I want to set its image_pull_policy
to ALWAYS
but for some reason it fails to pull the image from the registryAjeel Ahmed
05/17/2023, 10:54 AMNimesh Kumar
05/17/2023, 11:20 AMItay Kruk
05/17/2023, 1:08 PMAndré Dias
05/17/2023, 2:31 PMPREFECT_API_KEY=[my_key]
PREFECT_API_URL=<https://api.prefect.cloud/api/accounts/{account_id}/workspace/{workspace_id}>
When I try to spin up the container, I always get a not found Response: {'detail': 'Not Found'}
response even though it exists.
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/api/accounts/{account_id}/workspace/{workspace_id}/flow_runs/filter>'
If I spin the command (in this case prefect agent start --pool template-dev --work-queue dev
) in my local machine outside a container it works fine. I have the same values I get in prefect config view
while spinning up the Docker Container. Can anyone help with this?Nathan Low
05/17/2023, 2:48 PMAnders Segerberg
05/17/2023, 2:51 PMset_schedule_active=False
, won't run on schedule (will always be "Late"); and, when clicking on the "Run now" button on the UI on this flow (in the window of scheduled runs), also won't run. Any ideas?Pedro Machado
05/17/2023, 3:58 PMRuntimeError: Service exceeded error threshold.
Any ideas? I am attaching the logs in the thread.
Version: 2.10.9
API version: 0.8.4
Python version: 3.10.8
Git commit: 1655c1fa
Built: Thu, May 11, 2023 2:29 PM
OS/Arch: linux/x86_64
Profile: cloud
Server type: cloud
Ritabrata Moitra
05/17/2023, 4:00 PMpython -m prefect.engine
command just installs the python libraries, and then stalls in Pending
state. Any pointers here?Chris
05/17/2023, 4:15 PMDeep shah
05/17/2023, 5:39 PMMarco Barbero Mota
05/17/2023, 5:43 PM.pkl
file. The result is a dictionary with two elements (two arrays).
@task(cache_key_fn=cache_file_based_fn,
persist_result=True, result_storage=LocalFileSystem(basepath=settings.main_dir+'/results'),
result_storage_key=settings.main_task_file,
result_serializer="pickle",
cache_result_in_memory=False)
Json is not supported because narrays cant be encoded with JSON. Pickle is fine with me but when I try to open the pickle file that was generated I get the following error: UnpicklingError: invalid load key, '{'.
Any clue why this is happening?
just FYI:
settings.main_task_file = 'results.pkl'
Posted in #prefect-getting-startedPedro Machado
05/17/2023, 6:54 PMsjammula
05/17/2023, 7:43 PMMitch
05/17/2023, 8:22 PMNed Cartmell
05/17/2023, 8:29 PM13:23:45.510 | WARNING | langchain.chat_models.openai - Retrying langchain.chat_models.openai.acompletion_with_retry.<locals>._completion_with_retry in 1.0 seconds as it raised Timeout: Request timed out.