File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2023,6 +2023,7 @@ class Meta:
20232023
20242024 class Status (models .TextChoices ):
20252025 UNKNOWN = "unknown"
2026+ DISABLED = "disabled"
20262027 RUNNING = "running"
20272028 SUCCESS = "success"
20282029 FAILURE = "failure"
@@ -2376,7 +2377,7 @@ def next_run_date(self):
23762377 @property
23772378 def status (self ):
23782379 if not self .is_active :
2379- return
2380+ return PipelineRun . Status . DISABLED
23802381
23812382 if self .pipelineruns .exists ():
23822383 latest = self .pipelineruns .only ("pk" ).first ()
Original file line number Diff line number Diff line change 4040 < span class ="icon has-text-grey mr-1 "> < i class ="fa fa-ban "> </ i > </ span >
4141 < span > Stale</ span >
4242 {% endif %}
43+ {% elif status == "disabled" %}
44+ {% if compact %}
45+ < i class ="fa fa-pause has-text-grey mr-1 "> </ i > Disabled
46+ {% else %}
47+ < span class ="icon has-text-grey mr-1 "> < i class ="fa fa-pause "> </ i > </ span >
48+ < span > Disabled</ span >
49+ {% endif %}
4350{% else %}
4451 {% if compact %}
4552 < i class ="fa fa-question-circle has-text-warning mr-1 "> </ i > Unknown
You can’t perform that action at this time.
0 commit comments