aiddata / geo-datasets

Scripts for preparing datasets in GeoQuery
http://geoquery.org
MIT License
20 stars 11 forks source link

job_watch_timeout variable cannot be None #177

Open cmhwang opened 8 months ago

cmhwang commented 8 months ago

Current behavior

In the develop-k8s branch attempting to deploy a prefect flow using kubernetes results in the error below:

pydantic.error_wrappers.ValidationError: 1 validation error for KubernetesJob
job_watch_timeout_seconds
  none is not an allowed value (type=type_error.none.not_allowed)

It seems like there is some kind of update or prefect bug requiring that job_watch_timeout_seconds can't be set to None in the geodata-k8s block in prefect.

Tasks

jacobwhall commented 8 months ago

Hey @cmhwang, I attempted to replicate this error on my own machine today, and didn't run into this issue. What version of Prefect are you using? Perhaps updating to a later version will resolve this problem.

cmhwang commented 8 months ago

Hey @cmhwang, I attempted to replicate this error on my own machine today, and didn't run into this issue. What version of Prefect are you using? Perhaps updating to a later version will resolve this problem.

I'm on prefect version 2.14.0. I can look into if that's the cause of incompatibility

jacobwhall commented 8 months ago

prefect version 2.14.0

That's a pretty recent version, so that's probably not causing the issue. I'm working on switching from Prefect agents to workers, which will overwrite a lot of the relevant code. Once I push those changes, let's try again and see if you're still encountering this bug.