Skip to content

Commit

Permalink
Move worker_version to base AbstractNgenRequest.
Browse files Browse the repository at this point in the history
Instead of just external subclass.
  • Loading branch information
robertbartel authored and aaraney committed Sep 10, 2024
1 parent 5b98b9f commit 9ed55bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class AbstractNgenRequest(DmodJobRequest, ABC):
"""

request_body: NGENRequestBody
worker_version: str = Field("latest", description="The desired version of the applicable worker for the request.")

_hydrofabric_data_requirement = PrivateAttr(None)
_forcing_data_requirement = PrivateAttr(None)
Expand Down Expand Up @@ -468,7 +469,5 @@ class ExternalAbstractNgenRequest(ExternalRequest, AbstractNgenRequest, ABC):
::class:`AbstractNgenRequest` are extended to properly account for this property (e.g., ::method:`__eq__`).
"""

worker_version: str = Field("latest", description="The desired version of the applicable worker for the request.")

def __eq__(self, other):
return super().__eq__(other) and self.session_secret == other.session_secret

0 comments on commit 9ed55bb

Please sign in to comment.