forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic retries of incomplete grading jobs
Sometimes it happens that a grading job never completes because of some technical issue, and it remains in "In Grading" state until user submits it for regrading. This commit implements automatic regrading of grading jobs that have not completed within configured timeout. There is also a simple heuristic to limit the (likely unsuccesful) automatic retries when it seems that the grader is more persistently unavailable. Closes apluslms#988.
- Loading branch information
Showing
8 changed files
with
125 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 3.2.12 on 2022-05-01 18:52 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import lib.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('exercise', '0045_auto_20220211_1540'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='PendingSubmission', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('submission_time', models.DateTimeField(null=True, verbose_name='LABEL_SUBMISSION_TIME')), | ||
('num_retries', models.IntegerField(default=0, verbose_name='LABEL_NUMBER_OF_RETRIES')), | ||
('submission', lib.fields.DefaultForeignKey(on_delete=django.db.models.deletion.CASCADE, to='exercise.submission', verbose_name='LABEL_SUBMISSION')), | ||
], | ||
options={ | ||
'verbose_name': 'MODEL_NAME_PENDING_SUBMISSION', | ||
'verbose_name_plural': 'MODEL_NAME_PENDING_SUBMISSION_PLURAL', | ||
}, | ||
), | ||
migrations.AddConstraint( | ||
model_name='pendingsubmission', | ||
constraint=models.UniqueConstraint(fields=('submission',), name='unique_submission'), | ||
), | ||
] |
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