-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from backend-developers-ltd/db-manifest
Validator db: separate executor count for each executor class
- Loading branch information
Showing
5 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...alidator/validator/migrations/0040_remove_minermanifest_unique_miner_manifest_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.2.15 on 2024-10-17 13:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("validator", "0039_delete_jobfinishedreceipt_delete_jobstartedreceipt"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveConstraint( | ||
model_name="minermanifest", | ||
name="unique_miner_manifest", | ||
), | ||
migrations.AddField( | ||
model_name="minermanifest", | ||
name="executor_class", | ||
field=models.CharField(default="spin_up-4min.gpu-24gb", max_length=255), | ||
preserve_default=False, | ||
), | ||
migrations.AddConstraint( | ||
model_name="minermanifest", | ||
constraint=models.UniqueConstraint( | ||
fields=("miner", "batch", "executor_class"), name="unique_miner_manifest" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters