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,
|
document=document,
|
||||||
type=WorkflowTrigger.WorkflowTriggerType.SCHEDULED,
|
type=WorkflowTrigger.WorkflowTriggerType.SCHEDULED,
|
||||||
workflow=workflow,
|
workflow=workflow,
|
||||||
)
|
).order_by("-run_at")
|
||||||
if not trigger.schedule_is_recurring and workflow_runs.exists():
|
if not trigger.schedule_is_recurring and workflow_runs.exists():
|
||||||
# schedule is non-recurring and the workflow has already been run
|
# schedule is non-recurring and the workflow has already been run
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user