Slackbot
04/14/2022, 3:16 PMKevin Kho
Mia
04/14/2022, 3:29 PMkubectl exec prefect-server-graphql-xxx -- prefect-server database upgrade -y
and it ran successfully but the error persists stillKevin Kho
Mia
04/14/2022, 3:35 PMKevin Kho
Kevin Kho
Mia
04/14/2022, 3:43 PMMia
04/14/2022, 3:51 PM[2022-04-14 15:42:53,225] ERROR - agent | Exception encountered while deploying flow run xxx-xxx-xxx-xxx
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/prefect/agent/agent.py", line 388, in _deploy_flow_run
deployment_info = self.deploy_flow(flow_run)
File "/usr/local/lib/python3.7/site-packages/prefect/agent/kubernetes/agent.py", line 430, in deploy_flow
job_spec = self.generate_job_spec(flow_run=flow_run)
File "/usr/local/lib/python3.7/site-packages/prefect/agent/kubernetes/agent.py", line 542, in generate_job_spec
flow_run, default=container.get("image")
File "/usr/local/lib/python3.7/site-packages/prefect/utilities/agent.py", line 29, in get_flow_image
storage = StorageSchema().load(flow_run.flow.storage)
File "/usr/local/lib/python3.7/site-packages/marshmallow_oneofschema/one_of_schema.py", line 153, in load
raise exc
marshmallow.exceptions.ValidationError: {'flows': defaultdict(<class 'dict'>, {'my-flow': {'value': ['Field may not be null.']}})}
Mia
04/14/2022, 3:53 PMKevin Kho
Mia
04/14/2022, 3:57 PMMia
04/14/2022, 3:58 PMKevin Kho
Kevin Kho
Mia
04/14/2022, 4:02 PMKevin Kho
Anna Geller
Zanie
Mia
04/14/2022, 4:39 PM<http://docker.io/bitnami/postgresql:11.9.0-debian-10-r1|docker.io/bitnami/postgresql:11.9.0-debian-10-r1>
@Zanie do I just pass
- name: HASURA_GRAPHQL_V1_BOOLEAN_NULL_COLLAPSE
value: "true"
as an env variable in helm chart Hasura definition?Zanie
Zanie
Zanie
Mia
04/14/2022, 6:49 PMkubectl describ pod <prefect agent server pod>
, i only see the image pulled is “latest”. I also checked Hasura graphql is running 2.1.1, postgresql is running 11.9.0, and HASURA_GRAPHQL_V1_BOOLEAN_NULL_COLLAPSE
env variable is set “true”. But i’m still getting the same errorMia
04/14/2022, 6:50 PMMia
04/14/2022, 6:51 PMNAME CHART VERSION APP VERSION DESCRIPTION
prefecthq/prefect-server 2022.03.29 2022.03.29 Prefect Server application bundle
Mia
04/22/2022, 2:24 PMMia
04/22/2022, 2:25 PMKevin Kho
@task
decorator. I have an exampleKevin Kho
import traceback
from prefect import task, Flow
from functools import partial, wraps
from prefect.executors import LocalDaskExecutor
def custom_task(func=None, **task_init_kwargs):
if func is None:
return partial(custom_task, **task_init_kwargs)
@wraps(func)
def safe_func(**kwargs):
try:
return func(**kwargs)
except Exception as e:
print(f"Full Traceback: {traceback.format_exc()}")
raise RuntimeError(type(e)) from None # from None is necessary to not log the stacktrace
safe_func.__name__ = func.__name__
return task(safe_func, **task_init_kwargs)
@custom_task
def abc(x):
return x
with Flow("custom-decorator-test") as flow:
abc.map([1,2,3,4,5])
flow.run()
# flow.executor = LocalDaskExecutor(scheduler="processes")
# flow.register("testing")
Mia
04/25/2022, 8:30 AMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by