-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR refactors the job creation code. Jobs, archive items and display sets now all use the same creation and validation logic. Errors from asynchronous input validation now get caught and are reported back to the user as error message on the Job object. The job is then cancelled and not executed. This PR also enables selecting existing images and files for jobs through the UI and enables re-using CIVs for existing values if possible. The same holds partially for the API view as well. It is not yet possible to create a job through the API with an existing non-image file. This was out of scope for this PR (DIAGNijmegen/rse-roadmap#335 (comment)) Part of DIAGNijmegen/rse-roadmap#335 Closes #3139 Closes #3325 Closes #3565 Partially addresses #3368 --------- Co-authored-by: James Meakin <[email protected]>
- Loading branch information
Showing
49 changed files
with
3,679 additions
and
1,349 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
37 changes: 37 additions & 0 deletions
37
app/grandchallenge/algorithms/migrations/0055_alter_job_status.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,37 @@ | ||
# Generated by Django 4.2.16 on 2024-09-20 08:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("algorithms", "0054_alter_algorithmimage_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="job", | ||
name="status", | ||
field=models.PositiveSmallIntegerField( | ||
choices=[ | ||
(0, "Queued"), | ||
(1, "Started"), | ||
(2, "Re-Queued"), | ||
(3, "Failed"), | ||
(4, "Succeeded"), | ||
(5, "Cancelled"), | ||
(6, "Provisioning"), | ||
(7, "Provisioned"), | ||
(8, "Executing"), | ||
(9, "Executed"), | ||
(10, "Parsing Outputs"), | ||
(11, "Executing Algorithm"), | ||
(12, "External Execution In Progress"), | ||
(13, "Validating inputs"), | ||
], | ||
db_index=True, | ||
default=0, | ||
), | ||
), | ||
] |
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.