We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B would get the runtime config via A
from dagster import ( ConfigurableResource, asset, materialize, ) class ResourceA(ConfigurableResource): date: str = "2025-01-20" class ResourceB(ConfigurableResource): resource_a: ResourceA @asset def test_asset(resource_A: ResourceA, resource_B: ResourceB) -> None: print("resource A's date: ", resource_A.date) print("resource B's resource A's date: ", resource_B.resource_a.date) resource_A = ResourceA.configure_at_launch() materialize( [test_asset], resources={ "resource_A": resource_A, "resource_B": ResourceB.configure_at_launch(resource_a=resource_A), }, run_config={ "loggers": {"console": {"config": {"log_level": "ERROR"}}}, "resources": {"resource_A": {"config": {"date": "2025-01-21"}}}, }, )
This gives
resource A's date: 2025-01-21 resource B's resource A's date: 2025-01-20
while I'd expect
resource A's date: 2025-01-21 resource B's resource A's date: 2025-01-21
If some fields of A do not have default values
from dagster import ( ConfigurableResource, asset, materialize, ) class ResourceA(ConfigurableResource): date: str class ResourceB(ConfigurableResource): resource_a: ResourceA @asset def test_asset(resource_A: ResourceA, resource_B: ResourceB) -> None: print("resource A's date: ", resource_A.date) print("resource B's resource A's date: ", resource_B.resource_a.date) resource_A = ResourceA.configure_at_launch() materialize( [test_asset], resources={ "resource_A": resource_A, "resource_B": ResourceB.configure_at_launch(resource_a=resource_A), }, run_config={ "loggers": {"console": {"config": {"log_level": "ERROR"}}}, "resources": {"resource_A": {"config": {"date": "2025-01-21"}}}, }, )
This gives the expected output
dagster, version 1.7.16
None
No response
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What's the issue?
What did you expect to happen?
B would get the runtime config via A
How to reproduce?
This gives
while I'd expect
If some fields of A do not have default values
This gives the expected output
Dagster version
dagster, version 1.7.16
Deployment type
None
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: