mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Ensure runs are sorted
This commit is contained in:
parent
8ba5b535c3
commit
ad52a27adf
@ -375,7 +375,7 @@ def check_scheduled_workflows():
|
||||
document=document,
|
||||
type=WorkflowTrigger.WorkflowTriggerType.SCHEDULED,
|
||||
workflow=workflow,
|
||||
)
|
||||
).order_by("-run_at")
|
||||
if not trigger.schedule_is_recurring and workflow_runs.exists():
|
||||
# schedule is non-recurring and the workflow has already been run
|
||||
logger.debug(
|
||||
|
Loading…
x
Reference in New Issue
Block a user