https://dagster.io/ logo
#ask-community
Title
# ask-community
j

Jueming Liu

06/29/2023, 1:14 PM
Hello team. I got this error for the latest version 1.3.12:
Copy code
dagster._check.ParameterCheckError: Invariant violation for parameter Cannot specify resource requirements in both @op decorator and as arguments to the decorated function. Description: None
Basically I have both
required_resource_keys
defined in decorator
@op
for
dagster_mlflow
and in the function I have the pythonic resource as arguemnt. Probably similar issue with [this](https://dagster.slack.com/archives/C01U954MEER/p1686325536451389)
🤖 1
s

sean

06/29/2023, 2:07 PM
Hi Jimmy, Can you remove the
required_resource_keys
arg? It’s unnecessary if you have the pythonic resource as argument.
j

Jueming Liu

06/29/2023, 2:26 PM
Hi I see I can use this ResourceParam[MlFlow] as pythonic resource. Maybe it's good to update the doc, there is no instruction of how to use
dagster_mlflow
in pythonic resource.
s

sean

06/30/2023, 4:23 PM
Good idea, I’ve created an issue: https://github.com/dagster-io/dagster/issues/15053
❤️ 1
2 Views