-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactorization for run_existing end-point (#1267)
* Saving job config * Updated run_existing method * Applying tests to the serializers * Transform config to JSON * Uploaded tests * Fixed code format * Improve swagger documentation * Added logger to the upload end-point * Reorder upload program serializer * Reorder job serializer * Added loos for run_existing * Fix typo * Updated migration script
- Loading branch information
Showing
10 changed files
with
322 additions
and
95 deletions.
There are no files selected for viewing
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,29 @@ | ||
# Generated by Django 4.2.11 on 2024-04-09 20:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0018_remove_program_public_delete_catalogentry"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="job", | ||
name="status", | ||
field=models.CharField( | ||
choices=[ | ||
("PENDING", "Pending"), | ||
("RUNNING", "Running"), | ||
("STOPPED", "Stopped"), | ||
("SUCCEEDED", "Succeeded"), | ||
("QUEUED", "Queued"), | ||
("FAILED", "Failed"), | ||
], | ||
default="QUEUED", | ||
max_length=10, | ||
), | ||
), | ||
] |
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
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
Oops, something went wrong.