Austin Weisgrau
04/05/2023, 10:00 PMKav Autar
04/12/2023, 12:26 AMprefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
I’ve set PREFECT_RESULTS_PERSIST_BY_DEFAULT=true
in the environment but this doesn’t change the behavior.
Any advice would be appreciated. I’m running prefect 2.10.2.Abhinav Chordia
04/12/2023, 4:54 PM> helm template . --values deployments/values-prod.yaml --debug
install.go:194: [debug] Original chart version: ""
install.go:211: [debug] CHART PATH: /tools/prefect
Error: template: prefect/charts/prefect-server/templates/hpa.yaml:2:15: executing "prefect/charts/prefect-server/templates/hpa.yaml" at <include "common.capabilities.hpa.apiVersion" .>: error calling include: template: prefect/charts/prefect-server/charts/common/templates/_capabilities.tpl:133:7: executing "common.capabilities.hpa.apiVersion" at <semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .context)>: error calling semverCompare: Invalid Semantic Version
helm.go:84: [debug] template: prefect/charts/prefect-server/templates/hpa.yaml:2:15: executing "prefect/charts/prefect-server/templates/hpa.yaml" at <include "common.capabilities.hpa.apiVersion" .>: error calling include: template: prefect/charts/prefect-server/charts/common/templates/_capabilities.tpl:133:7: executing "common.capabilities.hpa.apiVersion" at <semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .context)>: error calling semverCompare: Invalid Semantic Version
Abhinav Chordia
04/12/2023, 4:55 PM<1.23-0
Abhinav Chordia
04/12/2023, 5:01 PMCody
04/12/2023, 5:59 PMCody
04/12/2023, 6:00 PMAustin Weisgrau
04/12/2023, 10:43 PMDeployment.schedule = IntervalSchedule(
interval=datetime.timedelta(days=1),
anchor_date=datetime.datetime.today().replace(
hour=9, minute=0, second=0
),
timezone="America/New_York"
)
I would expect the Deployment to be scheduled to run at 9am EST every day. Instead, it is scheduled 4 hours later than that.
If it is relevant, the computer I'm executing this from is in US/Pacific time.
Here's my prefect version info:
Version: 2.8.2
API version: 0.8.4
Python version: 3.10.9
Git commit: afbed19d
Built: Fri, Feb 17, 2023 10:02 AM
OS/Arch: linux/x86_64
Profile: default
Server type: cloud
Nimesh Kumar
04/13/2023, 10:38 AMLet supose i have sent 3 zip file for inferencing, and number of images in 1,2,3 zip files are 99,147,810. And when i trigger the flow let suppose zip file with 810 images started first and 99 is next in line. So what i want is the moment the zip file with the lesser image came for inferencing compare to current execution in flow run with 810 images get pause and zip file with 99 images (which currently is in late state because concurrency is 1 and i cannot increase it) starts running.
Can anyone please help in this.Cody
04/13/2023, 7:41 PMprefect profile use 'local'
command I get the error below, but the profile is still changed. I'm not sure if the error is going to cause issues down the road.
## Running on powershell in Windows 11
##
## View Current profile
##
❯❯❯ prefect profile ls
┏━━━━━━━━━━━━━━━━━━━━━┓
┃ Available Profiles: ┃
┡━━━━━━━━━━━━━━━━━━━━━┩
│ default │
│ * local │
└─────────────────────┘
* active profile
##
## Change to 'default'. Error gets thrown
##
❯❯❯ prefect profile use 'default'
⠸ Checking API connectivity...
Connected to Prefect Cloud using profile 'default'
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002A9D9185310>
Traceback (most recent call last):
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
##
## See that profile has changed
##
❯❯❯ prefect profile ls
┏━━━━━━━━━━━━━━━━━━━━━┓
┃ Available Profiles: ┃
┡━━━━━━━━━━━━━━━━━━━━━┩
│ * default │
│ local │
└─────────────────────┘
* active profile
##
## Change back to 'local'. Error is thrown again.
##
❯❯❯ prefect profile use 'local'
⠋ Checking API connectivity...
Connected to Prefect server using profile 'local'
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001F385726310>
Traceback (most recent call last):
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001F385726310>
Traceback (most recent call last):
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Users\Cody\anaconda3\envs\prefect2\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
##
## Show that profile was switched
##
❯❯❯ prefect profile ls
┏━━━━━━━━━━━━━━━━━━━━━┓
┃ Available Profiles: ┃
┡━━━━━━━━━━━━━━━━━━━━━┩
│ default │
│ * local │
└─────────────────────┘
* active profile
Austin Weisgrau
04/15/2023, 12:07 AMRecursionError: maximum recursion depth exceeded in comparison
Here's my prefect version info:
Version: 2.8.2
API version: 0.8.4
Python version: 3.10.9
Git commit: afbed19d
Built: Fri, Feb 17, 2023 10:02 AM
OS/Arch: linux/x86_64
Profile: default
Server type: cloud
Abhinav Chordia
04/17/2023, 6:01 PMsoham butala
04/17/2023, 6:59 PMTom
04/18/2023, 6:59 AMAbhinav Chordia
04/18/2023, 3:53 PMAndy Dienes
04/18/2023, 7:41 PMsrc/myproj/file.py
and the boilerplate for flows and configs in another src/myproj
, and I was doing prefect deploy ../../src/myproj/file.py:foo
. unsurprisingly this didn't work. what's the recommended pattern here?
is it possible to include src/myproj
in the push
section of my prefect.yaml?Hillary
04/19/2023, 2:46 PMS
04/19/2023, 4:03 PMAnthony Finocchiaro
04/19/2023, 6:28 PMRUN az login --service-principal -u ${SP_ACCESS_KEY_ID} -p ${SP_SECRET_ACCESS_KEY} --tenant ${SP_TENANT_ID} \
&& /bin/sh -c "prefect config set PREFECT_API_URL=$(az keyvault secret show --name PREFECT-API-URL --vault-name secretsmanager --query value)" \
&& /bin/sh -c "prefect config set PREFECT_API_KEY=$(az keyvault secret show --name PREFECT-API-KEY --vault-name secretsmanager --query value)" \
&& /bin/sh -c "prefect block register -m prefect_azure" \
&& /bin/sh -c "prefect block register -m prefect_azure.container_instance"
Abhinav Chordia
04/19/2023, 8:29 PMMaximilian Schulz
04/20/2023, 3:23 PMAvinash Santhanagopalan
04/20/2023, 9:39 PMMaximilian Schulz
04/24/2023, 8:34 AMJonah
04/24/2023, 9:51 PMRafael
04/25/2023, 3:48 AMname
parameter in the flow definition`. I’ve checked everywhere and can’t find any sort of double definition. Looked around online, and couldn’t find almost any help. Any ideas? (using the most recent release 2.10.5
)S
04/25/2023, 1:32 PMprefect deployment build acc_speed_loader.py:run_all --name acc_test --infra-block docker-container/prefect
ERROR:
ValueError: Unable to find block document named prefect for block type docker-container
An exception occurred
[more info in thread]Theo Sjöstedt
04/25/2023, 1:44 PMcertain-stingray
discreet-mole
etc 🙂
Ideally in runtime, since I want it to reflect the parameters that was sent in, so lets say that I have
@flow
def my_flow(
name: str,
some_number: int,
):
somehow_set_flow_run_name_to(f"{name}: {some_number}")
Something like that 🙂juana
04/25/2023, 4:42 PM@flow(task_runner=DaskTaskRunner(cluster_kwargs={"processes": False}))
J Chan
04/25/2023, 9:54 PMprefect server database restart -y
but the problem is persisting. I'm not sure what is going on here.Darren
04/26/2023, 3:25 PMThis page isn't working
. I have 2 services in my yaml file prefect-server & prefect-agent. prefect-server’s log is attached, prefect-agent is running fine. will appreciate any help to set this up. TIA!