Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: The max size of an instance for PAYG model is too low #97

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aleph_message/models/execution/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def is_read_only(self):

class EphemeralVolumeSize(ConstrainedInt):
gt = 0
le = 1000 # Limit to 1 GiB
le = gigabyte_to_mebibyte(Gigabytes(10)) # Limit to 10 GB
strict = True


Expand Down Expand Up @@ -60,8 +60,8 @@ class VolumePersistence(str, Enum):

class PersistentVolumeSizeMib(ConstrainedInt):
gt = 0
le = gigabyte_to_mebibyte(Gigabytes(100))
strict = True # Limit to 100 GiB
le = gigabyte_to_mebibyte(Gigabytes(1_000))
strict = True # Limit to 1 TB


class PersistentVolume(AbstractVolume):
Expand Down
Loading