Minor stuff

This commit is contained in:
shamoon 2024-10-23 22:17:34 -07:00
parent 8454182c72
commit 0f7b05d4d2
No known key found for this signature in database
3 changed files with 12 additions and 12 deletions

View File

@ -4387,29 +4387,29 @@
<context context-type="linenumber">123</context> <context context-type="linenumber">123</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3676850495488145564" datatype="html"> <trans-unit id="4779176004576564638" datatype="html">
<source>Offset</source> <source>Offset days</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context> <context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">126</context> <context context-type="linenumber">126</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="1053165610360608412" datatype="html"> <trans-unit id="8816141193078203810" datatype="html">
<source>Offset in days. Use 0 for immediate.</source> <source>Use 0 for immediate.</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context> <context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">126</context> <context context-type="linenumber">126</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="3571391964903695725" datatype="html"> <trans-unit id="1011433830042635014" datatype="html">
<source>Repeat</source> <source>Recurring</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context> <context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">127</context> <context context-type="linenumber">127</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="59662776949594121" datatype="html"> <trans-unit id="4951638563945393327" datatype="html">
<source>Repeat the trigger after the delay.</source> <source>Repeat the trigger after the offset.</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context> <context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">127</context> <context context-type="linenumber">127</context>

View File

@ -123,8 +123,8 @@
<p class="small" i18n>Set scheduled trigger offset and which field to use.</p> <p class="small" i18n>Set scheduled trigger offset and which field to use.</p>
<div class="row"> <div class="row">
<div class="col-4"> <div class="col-4">
<pngx-input-number i18n-title title="Offset" formControlName="schedule_offset_days" i18n-hint hint="Offset in days. Use 0 for immediate." [showAdd]="false" [error]="error?.schedule_offset_days"></pngx-input-number> <pngx-input-number i18n-title title="Offset days" formControlName="schedule_offset_days" i18n-hint hint="Use 0 for immediate." [showAdd]="false" [error]="error?.schedule_offset_days"></pngx-input-number>
<pngx-input-check i18n-title title="Repeat" formControlName="schedule_is_recurring" i18n-hint hint="Repeat the trigger after the delay." [error]="error?.schedule_is_recurring"></pngx-input-check> <pngx-input-check i18n-title title="Recurring" formControlName="schedule_is_recurring" i18n-hint hint="Repeat the trigger after the offset." [error]="error?.schedule_is_recurring"></pngx-input-check>
</div> </div>
<div class="col-4"> <div class="col-4">
<pngx-input-select i18n-title title="Relative to" formControlName="schedule_date_field" [items]="scheduleDateFieldOptions" [error]="error?.schedule_date_field"></pngx-input-select> <pngx-input-select i18n-title title="Relative to" formControlName="schedule_date_field" [items]="scheduleDateFieldOptions" [error]="error?.schedule_date_field"></pngx-input-select>

View File

@ -398,9 +398,9 @@ def check_scheduled_workflows():
and workflow_runs.exists() and workflow_runs.exists()
and workflow_runs.last().run_at > timezone.now() - offset_td 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( 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 continue
run_workflows( run_workflows(