Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #76 from kpn/feature/add-aborted-steps
Browse files Browse the repository at this point in the history
Added aborted status for steps
  • Loading branch information
mjholtkamp authored Feb 4, 2020
2 parents 3267d1d + 2ef227c commit d524138
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions katka/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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),
)
Expand Down
30 changes: 30 additions & 0 deletions katka/migrations/0032_added_step_aborted.py
Original file line number Diff line number Diff line change
@@ -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,
),
),
]

0 comments on commit d524138

Please sign in to comment.