Anish Giri
03/03/2023, 8:39 AMprefect server start
I get an error
│ No such command 'server'.│
Has anyone else encountered this? I used --help
to see the list of available commands and can't find a server
commandAnish Giri
03/03/2023, 8:39 AMLukas Bachus
03/03/2023, 12:16 PMNimesh Kumar
03/04/2023, 4:31 AMIvan
03/06/2023, 12:59 PMIvan
03/07/2023, 8:25 PMDatabase Error in model dbt_metrics_custom_calendar (models/dbt_metrics_custom_calendar.sql)
No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.
What I’m doing wrong? It seems that the warehouse is already stated in SnowflakeTarget Block (and it shows when I’m running dbt debug
), but when I’m trying to run some models, it gives me this kind of error.
>>> prefect.__version__
'2.8.3'
>>> prefect_dbt.__version__
'0.3.1'
>>> prefect_snowflake.__version__
'0.26.1'
Robert Denham
03/08/2023, 1:26 AMRobert Denham
03/08/2023, 1:30 AMPeddakotla Sravan Kumar Reddy
03/08/2023, 7:40 AMDendi Handian
03/08/2023, 10:16 AMZack
03/08/2023, 10:21 PMdeployment = Deployment.build_from_flow(
flow=artist_ranker_etl,
name="artist-ranker-deployment",
entrypoint="artist_ranker.main.handler",
)
deployment.apply()
Ivan
03/08/2023, 11:36 PMprefect deployment build -ib process/default -sb GitHub/github-credentials -q default flows/flow_dbt_cli_2.py:trigger_dbt_flow -t dbt_cli -n local-flows -a
I’ve also created a block using GitHubCredentials
from prefect_github.
What I’m doing wrong when creating a deployment?Zack
03/09/2023, 2:47 PMZack
03/09/2023, 3:34 PMZack
03/09/2023, 5:29 PMdeployment = Deployment.build_from_flow(
flow=artist_ranker_etl,
name="artist-ranker-deployment",
entrypoint="artist_ranker.main.handler",
)
deployment.apply()
I'm only seeing it once in the ui for the initial run.YSF
03/09/2023, 7:46 PMfrom prefect import flow
@flow
def my_favorite_function():
print("What is your favorite number?")
return 42
print(my_favorite_function())
And when I run python dev.py
it gives me an error RuntimeError: Cannot create flow run. Failed to reach API at <http://127.0.0.1:4200/api/>
I tried changing the code to:
from prefect import flow
@flow
def my_favorite_function():
print("What is your favorite number?")
return 42
if __name__ == "__main__":
print(my_favorite_function())
And it still gives me the same error.
Am I missing something? I'm sure I've run this code before when trying to learn (edited)Kasia
03/10/2023, 7:32 AMLuca Sorgiacomo
03/10/2023, 12:19 PM/api/docs
.
I'm testing the /flows/filter
endpoint and I'm finding the eq_
operator works only when using the "query style" as follows:
{
"query": {
"deployments": {
"work_queue_name": {
"eq_": "integration"
}
}
}
}
If I put the filter directly, I get the following pydantic error:
{
"exception_message": "Invalid request received.",
"exception_detail": [
{
"loc": [
"body",
"deployments",
"work_queue_name",
"eq_"
],
"msg": "extra fields not permitted",
"type": "value_error.extra"
}
],
"request_body": {
"deployments": {
"work_queue_name": {
"eq_": "integration"
}
}
}
}
But if I use any_
with the same value in an array it works.
The same error happens using all_
with an array.
Should I file a bug report?Chris Reuter
03/10/2023, 1:41 PMJanet Carson
03/10/2023, 4:46 PMYsé Wanono
03/13/2023, 10:58 AMSlackbot
03/13/2023, 6:27 PMVera Zabeida
03/14/2023, 2:37 PMprefect-gcp
here, and the CloudRunJob module for my infrastructure.. All works great! thanks for the module!
Just wondering though, when I look at my Google Cloud dashboard, under CloudRun jobs, I don't see any trace of my CloudRunJobs running?
Not sure I understand how it all works, any tips on how to debug CloudRunJobs (was thinking I'll get some sort of logs in Google dashboard UI)
TIA!
here's the sample project I'm working on, and the spot I use CloudRun inMohammad Kaif Rizvi
03/14/2023, 2:46 PMColin Bieberstein
03/14/2023, 3:27 PMYSF
03/14/2023, 7:34 PM...AppData\Local\Temp\tmput9_b5yuprefect
Wellington Braga
03/15/2023, 1:47 PMWellington Braga
03/15/2023, 1:49 PMIvan
03/15/2023, 7:43 PMRobert Denham
03/15/2023, 11:46 PM