From 95231499115f01adf8b5283b765686b225ab2af2 Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Mon, 13 May 2024 11:26:57 -0500 Subject: [PATCH] Add default to lock_expiration_policy --- src/api/src/backend/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/backend/models.py b/src/api/src/backend/models.py index 1228f094..0024e4a1 100644 --- a/src/api/src/backend/models.py +++ b/src/api/src/backend/models.py @@ -377,7 +377,7 @@ class Pipeline(models.Model): default=DEFAULT_MAX_WORKFLOW_EXEC_TIME, validators=[MaxValueValidator(DEFAULT_MAX_WORKFLOW_EXEC_TIME), MinValueValidator(1)] ) - lock_expiration_policy = models.CharField(max_length=16, choices=PIPELINE_LOCK_EXPIRATION_POLICIES) + lock_expiration_policy = models.CharField(max_length=16, choices=PIPELINE_LOCK_EXPIRATION_POLICIES, default=PIPELINE_LOCK_EXPIRATION_POLICY_DISABLE_PIPELINE) max_retries = models.IntegerField(default=DEFAULT_MAX_RETRIES) duplicate_submission_policy = models.CharField(max_length=32, choices=DUPLICATE_SUBMISSION_POLICIES, default=EnumDuplicateSubmissionPolicy.Terminate) owner = models.CharField(max_length=64)