YD
12/30/2022, 4:41 PMprefect deployment build <file name>.py:r<flow name> -q local --name <deployment name> --path ~/<deployment path> --skip-upload
in the yaml
file, the entrypoint:
uses a relative path, which does not work when running the deployment from the cloud dashboard.
When I change it to a full path, it works, but I think that should not be the behavior, particularly since the entrypoint
is below the ### DO NOT EDIT BELOW THIS LINE
Bianca Hoch
12/30/2022, 5:01 PMYD
12/31/2022, 7:35 AMtask_future.wait() # block until completion
AttributeError: 'bool' object has no attribute 'wait'
on code that runs on laptop. not clear why
I think I will stay with Prefect 1.0 a little longerprefect deployment build ../weekly_git_models_update.py:run_git_models_update -q aws2 --tag AWS --name yquark_deployment --skip-upload
Error
Script at '../weekly_git_models_update.py' encountered an exception: AttributeError("module 'numpy' has no attribute 'typeDict'")
Bianca Hoch
01/03/2023, 11:00 PMAttributeError: 'bool' object has no attribute 'wait'
), are you calling wait() for a task's PrefectFuture
to return a State
? ie:
@flow
def my_flow():
future = add_one.submit(1) # return PrefectFuture
state = future.wait() # return State
Example was pulled from here if you need more references.YD
01/05/2023, 5:06 AMsudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt install -y python3-pip python3 python3-setuptools build-essential libssl-dev libffi-dev python3-dev python3-venv libpq-dev
sudo apt-get install -y python3-sklearn
sudo apt-get install -y python3-sklearn-lib
sudo apt-get install python3-sklearn-doc
sudo apt install sqlite3
sudo apt-get update -y
sudo reboot
pip3 install pip --upgrade
pip3 install prefect
-- installing postgres
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo systemctl start postgresql.service
prefect cloud login --key ...
prefect cloud workspace set --workspace "..."
I tried recreating a new instance several timesresult
from
result = test_1.submit(True, True)
is not a typical object that should be returned from a task, but just the value, in the case the boolean value.Bianca Hoch
01/09/2023, 5:46 PM