Performance - Prevent redundant processing back to January 1st 1970 on every cron run

Created on 7 August 2023, about 2 years ago
Updated 17 August 2024, about 1 year ago

Problem/Motivation

Bumping this to critical.

The solution is outlined quite some time ago in comment #3003907-73: Make this work with multilingual β†’

Without this solution your site can become completely hampered by performance issues caused by redundant processing going back to January 1st 1970.

Steps to reproduce

Start using lightining_scheduler, schedule several transitions over a period of several months/years.
Notice your site getting slower and slower the more that scheduler transitions accumulate.

Proposed resolution

See patch

Remaining tasks

Review and commit the patch and tag a release.

User interface changes

N/A

API changes

Goes back to last cron run minus a couple days (no more) to ensure everything is processed but not excessively redundantly. Each processing loads the node into memory, can become extremely onerous over time and the logic makes no sense and can lead to excessive denials of service.

The end result is a denial of service and overtaxing of servers.

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joseph.olstad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024