-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: add per-entity restart parameters [AAP-20053]
- Loading branch information
1 parent
4c1bb7b
commit ee17619
Showing
6 changed files
with
355 additions
and
14 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
121 changes: 121 additions & 0 deletions
121
src/aap_eda/core/migrations/0028_activation_restart_completion_interval_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,121 @@ | ||
# Generated by Django 4.2.7 on 2024-03-21 18:43 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
import aap_eda.core.models.activation | ||
import aap_eda.core.models.event_stream | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"core", | ||
"0027_credentialtype_alter_permission_resource_type_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="activation", | ||
name="restart_completion_interval", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.activation.RestartCompletionInterval[ | ||
"MINIMUM" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.activation.RestartCompletionInterval[ | ||
"MINIMUM" | ||
], | ||
message="The restart interval for completions specifies the delay, in seconds, between restarts; it must be an integer greater than or equal to 0 indicating the delay, in seconds, between restarts; system settings = 0, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="activation", | ||
name="restart_failure_interval", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.activation.RestartFailureInterval[ | ||
"MINIMUM" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.activation.RestartFailureInterval[ | ||
"MINIMUM" | ||
], | ||
message="The restart interval for failures specifies the delay, in seconds, between restarts; it must be an integer greater than or equal to 0 indicating the delay, in seconds, between restarts; system settings = 0, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="activation", | ||
name="restart_failure_limit", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.activation.RestartFailureLimit[ | ||
"SETTINGS" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.activation.RestartFailureLimit[ | ||
"MINIMUM" | ||
], | ||
message="The restart limit for failiures specifies the limit on repeated attempts to start an activation in the face of failures to do so; it must be an integer greater than or equal to -1; system settings = 0, unlimited restarts = -1, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="eventstream", | ||
name="restart_completion_interval", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.event_stream.RestartCompletionInterval[ | ||
"MINIMUM" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.event_stream.RestartCompletionInterval[ | ||
"MINIMUM" | ||
], | ||
message="The restart interval for completions specifies the delay, in seconds, between restarts; it must be an integer greater than or equal to 0 indicating the delay, in seconds, between restarts; system settings = 0, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="eventstream", | ||
name="restart_failure_interval", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.event_stream.RestartFailureInterval[ | ||
"MINIMUM" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.event_stream.RestartFailureInterval[ | ||
"MINIMUM" | ||
], | ||
message="The restart interval for failures specifies the delay, in seconds, between restarts; it must be an integer greater than or equal to 0 indicating the delay, in seconds, between restarts; system settings = 0, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="eventstream", | ||
name="restart_failure_limit", | ||
field=models.IntegerField( | ||
default=aap_eda.core.models.event_stream.RestartFailureLimit[ | ||
"SETTINGS" | ||
], | ||
validators=[ | ||
django.core.validators.MinValueValidator( | ||
limit_value=aap_eda.core.models.event_stream.RestartFailureLimit[ | ||
"MINIMUM" | ||
], | ||
message="The restart limit for failiures specifies the limit on repeated attempts to start an activation in the face of failures to do so; it must be an integer greater than or equal to -1; system settings = 0, unlimited restarts = -1, default = 0", | ||
) | ||
], | ||
), | ||
), | ||
] |
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
Oops, something went wrong.