Publish_state and unpublish_state value is coming empty

Created on 20 February 2025, about 2 months ago

Problem/Motivation

The publish_state and unpublish_state values are coming up empty. This issue prevents content from being scheduled correctly based on moderation states. ( I can see "publish_state" and "unpublish_state" fields are present for entity)

Steps to reproduce

1) Install and enable Scheduler and Content Moderation modules.
2) Configure workflow settings (Add Moderation states, Transitions and Content type for which we need scheduler support)
3) Create a new node of that content type and:

  • Set a future "Publish on" date.
  • Set a future "Unpublish on" date.

4) Wait for the scheduled date to pass.
5) Run the cron job from UI.
6) Check the node’s status; it remains unchanged instead of being published/unpublished.
7) On debugging it is observed that "publishe_state" (in scheduler_content_moderation_integration_scheduler_publish_process) and "unpublish_state" (in scheduler_content_moderation_integration_scheduler_unpublish_process) are always coming empty.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India Yogesh Kambari

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

Comments & Activities

Production build 0.71.5 2024