Skip to content

Commit c5a8273

Browse files
Release 1.10.21 (tracks 12cab7959a2f734dc561e96b09f1acdfd1a56f52)
1 parent 098b07f commit c5a8273

7 files changed

Lines changed: 49 additions & 13 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.10.20"
1+
__version__ = "1.10.21"

dagster-cloud-examples/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
]
2121
dependencies = [
22-
"dagster-cloud==1.10.20",
22+
"dagster-cloud==1.10.21",
2323
]
2424

2525
[project.license]

dagster-cloud/dagster_cloud/pex/grpc/server/server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
DagsterApiServicer,
1515
add_DagsterApiServicer_to_server,
1616
)
17-
from dagster._grpc.client import DEFAULT_GRPC_TIMEOUT
17+
from dagster._grpc.client import DEFAULT_GRPC_TIMEOUT, DEFAULT_REPOSITORY_GRPC_TIMEOUT
1818
from dagster._grpc.server import server_termination_target
1919
from dagster._grpc.types import GetCurrentRunsResult, SensorExecutionArgs
2020
from dagster._grpc.utils import max_rx_bytes, max_send_bytes
@@ -201,7 +201,9 @@ def GetCurrentImage(self, request, context):
201201
return self._query("GetCurrentImage", request, context)
202202

203203
def StreamingExternalRepository(self, request, context):
204-
return self._streaming_query("StreamingExternalRepository", request, context)
204+
return self._streaming_query(
205+
"StreamingExternalRepository", request, context, timeout=DEFAULT_REPOSITORY_GRPC_TIMEOUT
206+
)
205207

206208
def Heartbeat(self, request, context):
207209
return self._query("Heartbeat", request, context)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.10.20"
1+
__version__ = "1.10.21"

dagster-cloud/dagster_cloud/workspace/config_schema/__init__.py

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,21 @@ def process_workspace_config(workspace_config) -> dict[str, Any]:
6262
python_file = config.get("python_file")
6363
package_name = config.get("package_name")
6464
module_name = config.get("module_name")
65+
autoload_defs_module_name = config.get("autoload_defs_module_name")
6566
check.invariant(
66-
len([val for val in [python_file, package_name, module_name] if val]) == 1,
67+
len(
68+
[
69+
val
70+
for val in [
71+
python_file,
72+
package_name,
73+
module_name,
74+
autoload_defs_module_name,
75+
]
76+
if val
77+
]
78+
)
79+
== 1,
6780
"Must supply exactly one of a file name, a package name, or a module name",
6881
)
6982

@@ -73,7 +86,8 @@ def process_workspace_config(workspace_config) -> dict[str, Any]:
7386
new_location = {
7487
k: v
7588
for k, v in location.items()
76-
if k not in ("python_file", "package_name", "module_name")
89+
if k
90+
not in ("python_file", "package_name", "module_name", "autoload_defs_module_name")
7791
}
7892
new_location["code_source"] = {}
7993
if "python_file" in location:
@@ -82,6 +96,10 @@ def process_workspace_config(workspace_config) -> dict[str, Any]:
8296
new_location["code_source"]["package_name"] = location["package_name"]
8397
elif "module_name" in location:
8498
new_location["code_source"]["module_name"] = location["module_name"]
99+
elif "autoload_defs_module_name" in location:
100+
new_location["code_source"]["autoload_defs_module_name"] = location[
101+
"autoload_defs_module_name"
102+
]
85103

86104
new_location["location_name"] = name
87105
updated_locations.append(new_location)
@@ -194,6 +212,10 @@ def process_workspace_config(workspace_config) -> dict[str, Any]:
194212
config=str,
195213
description="Python module containing the target Dagster repository.",
196214
),
215+
"autoload_defs_module_name": Field(
216+
config=str,
217+
description="Python module to automatically load Dagster definitions from.",
218+
),
197219
},
198220
),
199221
description="Python entry point for the code location.",
@@ -282,6 +304,11 @@ def process_workspace_config(workspace_config) -> dict[str, Any]:
282304
is_required=False,
283305
description="Python module containing the target Dagster repository.",
284306
),
307+
"autoload_defs_module_name": Field(
308+
config=str,
309+
is_required=False,
310+
description="Python module to automatically load Dagster definitions from.",
311+
),
285312
}
286313
LEGACY_LOCATION_CONFIG_SCHEMA = Shape(fields=LEGACY_CONFIG_SCHEMA_FIELDS)
287314
LEGACY_NAMED_LOCATIONS_CONFIG_SCHEMA = Map(

dagster-cloud/dagster_cloud/workspace/user_code_launcher/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,11 @@ def get_grpc_server_env(
125125
if code_location_deploy_data.executable_path
126126
else {}
127127
),
128+
**(
129+
{
130+
"DAGSTER_CLI_API_GRPC_AUTOLOAD_DEFS_MODULE_NAME": code_location_deploy_data.autoload_defs_module_name
131+
}
132+
if code_location_deploy_data.autoload_defs_module_name
133+
else {}
134+
),
128135
}

dagster-cloud/pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ classifiers = [
2929
"Operating System :: OS Independent",
3030
]
3131
dependencies = [
32-
"dagster==1.10.20",
33-
"dagster-shared==1.10.20",
34-
"dagster-cloud-cli==1.10.20",
32+
"dagster==1.10.21",
33+
"dagster-shared==1.10.21",
34+
"dagster-cloud-cli==1.10.21",
3535
"opentelemetry-api>=1.27.0,<2",
3636
"opentelemetry-sdk>=1.27.0,<2",
3737
"opentelemetry-exporter-otlp-proto-grpc>=1.27.0,<2",
@@ -90,14 +90,14 @@ insights = [
9090
]
9191
docker = [
9292
"docker",
93-
"dagster-docker==0.26.20",
93+
"dagster-docker==0.26.21",
9494
]
9595
kubernetes = [
9696
"kubernetes",
97-
"dagster-k8s==0.26.20",
97+
"dagster-k8s==0.26.21",
9898
]
9999
ecs = [
100-
"dagster-aws==0.26.20",
100+
"dagster-aws==0.26.21",
101101
"boto3",
102102
]
103103
sandbox = [

0 commit comments

Comments
 (0)