runnable 0.28.5__py3-none-any.whl → 0.28.6__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
runnable/sdk.py CHANGED
@@ -824,12 +824,22 @@ class Pipeline(BaseModel):
824
824
 
825
825
  class BaseJob(BaseModel):
826
826
  catalog: Optional[Catalog] = Field(default=None, alias="catalog")
827
- overrides: Dict[str, Any] = Field(default_factory=dict, alias="overrides")
828
827
  returns: List[Union[str, TaskReturns]] = Field(
829
828
  default_factory=list, alias="returns"
830
829
  )
831
830
  secrets: List[str] = Field(default_factory=list)
832
831
 
832
+ @field_validator("catalog", mode="after")
833
+ @classmethod
834
+ def validate_catalog(cls, catalog: Optional[Catalog]) -> Optional[Catalog]:
835
+ if catalog is None:
836
+ return None
837
+
838
+ if catalog.get:
839
+ raise Exception("Catalog get is not supported for jobs")
840
+
841
+ return catalog
842
+
833
843
  def get_task(self) -> RunnableTask:
834
844
  raise NotImplementedError
835
845
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runnable
3
- Version: 0.28.5
3
+ Version: 0.28.6
4
4
  Summary: Add your description here
5
5
  Author-email: "Vammi, Vijay" <vijay.vammi@astrazeneca.com>
6
6
  License-File: LICENSE
@@ -52,12 +52,12 @@ runnable/names.py,sha256=vn92Kv9ANROYSZX6Z4z1v_WA3WiEdIYmG6KEStBFZug,8134
52
52
  runnable/nodes.py,sha256=YU9u7r1ESzui1uVtJ1dgwdv1ozyJnF2k-MCFieT8CLI,17519
53
53
  runnable/parameters.py,sha256=LyQb1d0SaFeI4PJ_yDYt9wArm9ThSPASWb36TwIdDUs,5213
54
54
  runnable/pickler.py,sha256=ydJ_eti_U1F4l-YacFp7BWm6g5vTn04UXye25S1HVok,2684
55
- runnable/sdk.py,sha256=T1nqDpLN9fULvvU9L-oY0EHqYdKUI9qk7oekLynm02Y,33568
55
+ runnable/sdk.py,sha256=y3fbK4KAP6FiTF37ickVF9gqaZXrJIgSnHGOSG5ZWpI,33803
56
56
  runnable/secrets.py,sha256=PXcEJw-4WPzeWRLfsatcPPyr1zkqgHzdRWRcS9vvpvM,2354
57
57
  runnable/tasks.py,sha256=X6xijut7ffwpfYDcXoN6y0AcRVd7fWHs676DJ00Kma4,29134
58
58
  runnable/utils.py,sha256=hBr7oGwGL2VgfITlQCTz-a1iwvvf7Mfl-HY8UdENZac,19929
59
- runnable-0.28.5.dist-info/METADATA,sha256=coPYv1TmJ8bJaBaXNnnvax7cdKWS9hGBYSJWKtuEpZU,10047
60
- runnable-0.28.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
61
- runnable-0.28.5.dist-info/entry_points.txt,sha256=ioMbWojILtdibYVgh1jXJ00SpK-tX3gy7oVGDq61cSk,1839
62
- runnable-0.28.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
- runnable-0.28.5.dist-info/RECORD,,
59
+ runnable-0.28.6.dist-info/METADATA,sha256=phU1gjJ7dhv5biqBNFOCQv5-rdoLpVtViGFc_cGTIQQ,10047
60
+ runnable-0.28.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
61
+ runnable-0.28.6.dist-info/entry_points.txt,sha256=ioMbWojILtdibYVgh1jXJ00SpK-tX3gy7oVGDq61cSk,1839
62
+ runnable-0.28.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
+ runnable-0.28.6.dist-info/RECORD,,