how to reload Definitions via GraphQL #18382
-
If in my Dagster code I'm using from dagster_graphql import ReloadRepositoryLocationInfo
reload_info: ReloadRepositoryLocationInfo = client.reload_repository_location(REPO_NAME) The question was originally asked in Dagster Slack. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes, it will work. Unfortunately the GQL client still uses some old API names, it is in our queue to fix that. |
Beta Was this translation helpful? Give feedback.
-
Hi, from dagster_graphql import (
ReloadRepositoryLocationInfo,
ReloadRepositoryLocationStatus,
DagsterGraphQLClient,
)
client = DagsterGraphQLClient("localhost", port_number=3000)
reload_info: ReloadRepositoryLocationInfo = client.reload_repository_location("vision")
if reload_info.status == ReloadRepositoryLocationStatus.SUCCESS:
print("reload")
else:
raise Exception(
"Repository location reload failed because of a "
f"{reload_info.failure_type} error: {reload_info.message}"
) |
Beta Was this translation helpful? Give feedback.
-
@dridk Thanks for the report, I can confirm it's no longer working and have filed this as a bug. |
Beta Was this translation helpful? Give feedback.
Yes, it will work. Unfortunately the GQL client still uses some old API names, it is in our queue to fix that.