Closed jpuris closed 1 year ago
I did not try to run any other scenarios other than Fraser Marlow's Orchestrate Meltano Jobs with Dagster first "Option" described in the blog post.
I do believe this problem affects most other use cases involving running Meltano jobs as it would often (or always?) involve the offending "default_env" property from MeltanoResource 🤷
Hi Janis,
Thanks for fixing the issue!
In the future I will add some more automated tests that run on newer Dagster versions to make sure it doesn't break in the future.
I just got this error in my stage environment (AWS ECS) but I don't get it in my local environment (docker-compose).
dagster._check.CheckError: Value in dict mismatches expected type for key MELTANO_CLI_LOG_CONFIG. Expected value of type <class 'str'>. Got value /opt/venv/lib/python3.8/site-packages/dagster_meltano/logging.yaml of type <class 'pathlib.PosixPath'>
I'm running dagster==1.4.6
, meltano==2.18.0
, dagster-meltano==1.3.1
. any thoughts on how to resolve?
We made a change to the loading of the environment variables in the latest release. That might have something to do with it?
https://github.com/quantile-development/dagster-meltano/compare/v1.3.0...v1.3.1
Possibly, though that code change seems benign. It looks like I had to actually pass MELTANO_CLI_LOG_CONFIG
into the env config to get it to work ... Not a big deal I suppose, but odd that it's not working as expected.
Hi!
When going through a blog post done by Fraser Marlow Orchestrate Meltano Jobs with Dagster, one would run into problems at section Option 1: import jobs from Meltano.
The error presented in the Dagster UI as well as stdout inside terminal running the
dagster dev
will output followingI believe the problems comes from the fact that at some point Dagster had introduced type checking, which then breaks as it would expect a
Dict[str, str]
object passed as env, but instead gets a Dict with a Pathlib's object in it.This PR will convert the offending key's value i.e.
MELTANO_CLI_LOG_CONFIG
into string before returning the dictionary for use downstream.