Publish on and unpublish on time not insync with cron run time

Created on 22 December 2022, about 2 years ago
Updated 22 October 2024, 5 months ago

Problem/Motivation

Once the entity is Publish and unpublish time via a cron run, it updates the publish_on and unpublish_on field, with entity's field value.
Which might not be the exact time when the cron has run, and hence creating a discrepancy in time set for Publish and unpublish time.

This discrepancy, impacts the analytics of number of entities being published/unpublished in a given time frame.

Steps to reproduce

Schedule an entity to be publish at 10:00 AM, and schedule the cron to run at 11:00AM every day.
Let the cron run.
Though the content gets published at 11:00AM, the entity would say that it got published at 10:00AM, which is not correct.

This incorrect data, impacts the analytics of number of entities being published in a given time frame.

Proposed resolution

Update the publish_on and unpublish_on field with the current timestamp, when the cron invokes publish/unpublish functions.

Remaining tasks

Patch Schedule Manager.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Feature request
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇮🇳India neerajsingh IN 🇮🇳

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.

Production build 0.71.5 2024