prefect-client 2.20.13__py3-none-any.whl → 2.20.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
prefect/workers/base.py CHANGED
@@ -132,7 +132,7 @@ class BaseJobConfiguration(BaseModel):
132
132
  Important: this method expects that the base_job_template was already
133
133
  validated server-side.
134
134
  """
135
- job_config: Dict[str, Any] = base_job_template["job_configuration"]
135
+ base_config: Dict[str, Any] = base_job_template["job_configuration"]
136
136
  variables_schema = base_job_template["variables"]
137
137
  variables = cls._get_base_config_defaults(
138
138
  variables_schema.get("properties", {})
@@ -141,17 +141,17 @@ class BaseJobConfiguration(BaseModel):
141
141
  # copy variable defaults for `env` to job config before they're replaced by
142
142
  # deployment overrides
143
143
  if variables.get("env"):
144
- job_config["env"] = variables.get("env")
144
+ base_config["env"] = variables.get("env")
145
145
 
146
146
  variables.update(values)
147
147
 
148
148
  # deep merge `env`
149
- if isinstance(job_config.get("env"), dict) and (
150
- hardcoded_env := variables.get("env")
149
+ if isinstance(base_config.get("env"), dict) and (
150
+ deployment_env := variables.get("env")
151
151
  ):
152
- job_config["env"] = {**hardcoded_env, **job_config.get("env", {})}
152
+ base_config["env"] = {**base_config.get("env", {}), **deployment_env}
153
153
 
154
- populated_configuration = apply_values(template=job_config, values=variables)
154
+ populated_configuration = apply_values(template=base_config, values=variables)
155
155
  populated_configuration = await resolve_block_document_references(
156
156
  template=populated_configuration, client=client
157
157
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefect-client
3
- Version: 2.20.13
3
+ Version: 2.20.14
4
4
  Summary: Workflow orchestration and management.
5
5
  Home-page: https://www.prefect.io
6
6
  Author: Prefect Technologies, Inc.
@@ -284,13 +284,13 @@ prefect/utilities/schema_tools/__init__.py,sha256=KsFsTEHQqgp89TkDpjggkgBBywoHQP
284
284
  prefect/utilities/schema_tools/hydration.py,sha256=RNuJK4Vd__V69gdQbaWSVhSkV0AUISfGzH_xd0p6Zh0,8291
285
285
  prefect/utilities/schema_tools/validation.py,sha256=zZHL_UFxAlgaUzi-qsEOrhWtZ7EkFQvPkX_YN1EJNTo,8414
286
286
  prefect/workers/__init__.py,sha256=6el2Q856CuRPa5Hdrbm9QyAWB_ovcT2bImSFsoWI46k,66
287
- prefect/workers/base.py,sha256=r0kM2EbT69yQsd3L7Lq99IqaBHhZgc6tcpdh3YekSJY,45779
287
+ prefect/workers/base.py,sha256=FZEbho1OHQ5WdFJEIxnxLCyIHR_f__uIHKZTE3XcHIk,45787
288
288
  prefect/workers/block.py,sha256=aYY__uq3v1eq1kkbVukxyhQNbkknaKYo6-_3tcrfKKA,8067
289
289
  prefect/workers/process.py,sha256=pPtCdA7fKQ4OsvoitT-cayZeh5HgLX4xBUYlb2Zad-Q,9475
290
290
  prefect/workers/server.py,sha256=WVZJxR8nTMzK0ov0BD0xw5OyQpT26AxlXbsGQ1OrxeQ,1551
291
291
  prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
292
- prefect_client-2.20.13.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
293
- prefect_client-2.20.13.dist-info/METADATA,sha256=vloZfmccHOZcZ4n8U_rzC4Y2ynSEulVBjINBy30o87E,7392
294
- prefect_client-2.20.13.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
295
- prefect_client-2.20.13.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
296
- prefect_client-2.20.13.dist-info/RECORD,,
292
+ prefect_client-2.20.14.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
293
+ prefect_client-2.20.14.dist-info/METADATA,sha256=IDlfkSwJOh6aIVcnAyvOh218vkL12A7cCpm0VQz0DQ4,7392
294
+ prefect_client-2.20.14.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
295
+ prefect_client-2.20.14.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
296
+ prefect_client-2.20.14.dist-info/RECORD,,