Skip to content

fix: cronjob: respect environment and nexttime for idle jobs - #6739

Merged
gharlan merged 1 commit into
6.xfrom
fix-cronjob-query-precedence
Oct 9, 2026
Merged

gharlan merged 1 commit into
6.xfrom
fix-cronjob-query-precedence

Conversation

@gharlan

@gharlan gharlan commented Oct 9, 2026

Copy link
Copy Markdown
Member

The execution_start IS NULL OR … condition introduced in #6057 was missing parentheses. Since AND binds tighter than OR, every active job with execution_start IS NULL (i.e. the normal idle state) matched regardless of environment and nexttime:

  • cronjob:run executed all active jobs on every call, due or not
  • jobs restricted to e.g. script also ran in frontend/backend

5.x is not affected (execution_start is not nullable there).

The OR added for the nullable execution_start column lacked parentheses, so AND bound tighter and every active, idle job matched regardless of environment and due time.
@gharlan gharlan added this to the REDAXO 6.0 milestone Oct 9, 2026
@gharlan gharlan changed the title fix(cronjob): respect environment and nexttime for idle jobs fix: cronjob: respect environment and nexttime for idle jobs Oct 9, 2026
@rex-bot rex-bot added the bug label Oct 9, 2026
@gharlan
gharlan merged commit 1950ded into 6.x Oct 9, 2026
15 of 16 checks passed
@gharlan
gharlan deleted the fix-cronjob-query-precedence branch October 9, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants