diff --git a/katka/constants.py b/katka/constants.py index d10eb88..a74ca32 100644 --- a/katka/constants.py +++ b/katka/constants.py @@ -25,6 +25,7 @@ STEP_STATUS_IN_PROGRESS = "in progress" STEP_STATUS_WAITING = "waiting" # A step cannot proceed until some action is completed STEP_STATUS_SKIPPED = "skipped" # A step is skipped due to some conditional +STEP_STATUS_ABORTED = "aborted" # A step was manually aborted STEP_STATUS_FAILED = "failed" STEP_STATUS_SUCCESS = "success" @@ -33,6 +34,7 @@ (STEP_STATUS_IN_PROGRESS, STEP_STATUS_IN_PROGRESS), (STEP_STATUS_WAITING, STEP_STATUS_WAITING), (STEP_STATUS_SKIPPED, STEP_STATUS_SKIPPED), + (STEP_STATUS_ABORTED, STEP_STATUS_ABORTED), (STEP_STATUS_FAILED, STEP_STATUS_FAILED), (STEP_STATUS_SUCCESS, STEP_STATUS_SUCCESS), ) diff --git a/katka/migrations/0032_added_step_aborted.py b/katka/migrations/0032_added_step_aborted.py new file mode 100644 index 0000000..f120d46 --- /dev/null +++ b/katka/migrations/0032_added_step_aborted.py @@ -0,0 +1,30 @@ +# Generated by Django 2.2.7 on 2020-02-03 15:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("katka", "0031_application_active"), + ] + + operations = [ + migrations.AlterField( + model_name="scmsteprun", + name="status", + field=models.CharField( + choices=[ + ("not started", "not started"), + ("in progress", "in progress"), + ("waiting", "waiting"), + ("skipped", "skipped"), + ("aborted", "aborted"), + ("failed", "failed"), + ("success", "success"), + ], + default="not started", + max_length=30, + ), + ), + ]