From 0f7b05d4d241763d9958fdc43d102eb0d0122102 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:17:34 -0700 Subject: [PATCH] Minor stuff --- src-ui/messages.xlf | 16 ++++++++-------- .../workflow-edit-dialog.component.html | 4 ++-- src/documents/tasks.py | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index e144497a1..5090f871b 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -4387,29 +4387,29 @@ 123 - - Offset + + Offset days src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html 126 - - Offset in days. Use 0 for immediate. + + Use 0 for immediate. src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html 126 - - Repeat + + Recurring src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html 127 - - Repeat the trigger after the delay. + + Repeat the trigger after the offset. src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html 127 diff --git a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html index 90f7b07df..3e8ac3e77 100644 --- a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html +++ b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html @@ -123,8 +123,8 @@

Set scheduled trigger offset and which field to use.

- - + +
diff --git a/src/documents/tasks.py b/src/documents/tasks.py index a907fb6e8..ccf243a89 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -398,9 +398,9 @@ def check_scheduled_workflows(): and workflow_runs.exists() and workflow_runs.last().run_at > timezone.now() - offset_td ): - # schedule is recurring but the last run was within the delay + # schedule is recurring but the last run was within the offset logger.debug( - f"Skipping document {document} for recurring workflow {workflow} as the last run was within the delay", + f"Skipping document {document} for recurring workflow {workflow} as the last run was within the offset", ) continue run_workflows(