-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [AAP-23378] add PENDING_WORKERS_OFFLINE activation status
This provides the agreed upon distinction between - PENDING a normal occurrence of a request not yet running - PENDING_WORKERS_OFFLINE an abnormal occurrence where the request has not yet run and cannot run due to lack of workers; note that this includes auto-start events where we definitively know the request's state - WORKERS_OFFLINE an abnormal occurrence where we do not know the request's state PENDING_WORKERS_OFFLINE maintains the fail-over functionality previously dependent solely on WORKERS_OFFLINE. For consistency with other log messages from the processing code the content of the message indicating issues with the workers has been modified from that documented in AAP-23378. It is worded as follows: The workers available to process request type {request_type} for {process_parent_type} {process_parent_id} are failing liveness checks. There may be an issue with the node; please contact the administrator. Orchestrator log messages were updated due to previous change that specifically set the request type if none was specified.
- Loading branch information
1 parent
c45ea01
commit 934ee20
Showing
5 changed files
with
128 additions
and
31 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
77 changes: 77 additions & 0 deletions
77
...aap_eda/core/migrations/0038_alter_activation_status_alter_eventstream_status_and_more.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,77 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 18:40 | ||
|
||
from django.db import migrations, models | ||
|
||
import aap_eda.core.enums | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0037_alter_activation_extra_var_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="activation", | ||
name="status", | ||
field=models.TextField( | ||
choices=[ | ||
("starting", "starting"), | ||
("running", "running"), | ||
("pending", "pending"), | ||
("pending (workers offline)", "pending (workers offline)"), | ||
("failed", "failed"), | ||
("stopping", "stopping"), | ||
("stopped", "stopped"), | ||
("deleting", "deleting"), | ||
("completed", "completed"), | ||
("unresponsive", "unresponsive"), | ||
("error", "error"), | ||
("workers offline", "workers offline"), | ||
], | ||
default=aap_eda.core.enums.ActivationStatus["PENDING"], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="eventstream", | ||
name="status", | ||
field=models.TextField( | ||
choices=[ | ||
("starting", "starting"), | ||
("running", "running"), | ||
("pending", "pending"), | ||
("pending (workers offline)", "pending (workers offline)"), | ||
("failed", "failed"), | ||
("stopping", "stopping"), | ||
("stopped", "stopped"), | ||
("deleting", "deleting"), | ||
("completed", "completed"), | ||
("unresponsive", "unresponsive"), | ||
("error", "error"), | ||
("workers offline", "workers offline"), | ||
], | ||
default=aap_eda.core.enums.ActivationStatus["PENDING"], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="rulebookprocess", | ||
name="status", | ||
field=models.TextField( | ||
choices=[ | ||
("starting", "starting"), | ||
("running", "running"), | ||
("pending", "pending"), | ||
("pending (workers offline)", "pending (workers offline)"), | ||
("failed", "failed"), | ||
("stopping", "stopping"), | ||
("stopped", "stopped"), | ||
("deleting", "deleting"), | ||
("completed", "completed"), | ||
("unresponsive", "unresponsive"), | ||
("error", "error"), | ||
("workers offline", "workers offline"), | ||
], | ||
default=aap_eda.core.enums.ActivationStatus["PENDING"], | ||
), | ||
), | ||
] |
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