Suspend cron job and queue item execution if GA4 API calls fail

Created on 29 June 2023, over 1 year ago
Updated 10 July 2023, over 1 year ago

Problem/Motivation

Don't process any more results if:
- someone runs cron with no proper authentication,
- proper authentication and API call fails during fetching URL list or writing it to database.

The module shouldn't write invalid data to the counter fields when no proper URL list could be retrieved.

For cron job, throw an \Exception.
For the queue worker, throw a SuspendQueueException.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

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

Comments & Activities

Production build 0.71.5 2024