Steps and Pointer can become out of sync with a cron failure

Created on 27 July 2022, almost 2 years ago
Updated 10 July 2023, 12 months ago

Problem/Motivation

I discovered a small amount of my content did not have matching analytics numbers, and I found that my site must have had a failed cron at some point and the $step and $pointer used for batch operations became out of sync. When first running cron my site would start with the following values as I step through the code

  1. Cron Run
  2. Step: 3, Pointer 1
  3. Step: 4, Pointer 1001
  4. Step: 0 , Pointer 2001
  5. Step: 1 , Pointer 3001
  6. Step: 2 , Pointer 4001
  7. Cron Finish

Steps to reproduce

I assume you would have to have cron fail, and clear the cron lock in the semaphore table.
Then run cron and see it start at a step other than 0

Proposed resolution

Change logic so if we are at Pointer 1, we force step to be 0 since that should always be the start of refreshing data.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    Because of the Universal Analytics shutdown, version 8.x-3.x is no longer supported.
    In version 4.0, the processing was rewritten to be more reliable and scalable. If you are still here and experiencing it with the latest version using GA4, then please open an issue about it.

Production build 0.69.0 2024