Handle scheduler

Created on 27 April 2021, about 4 years ago
Updated 16 June 2023, almost 2 years ago

Problem/Motivation

publish at is not filled after cron run with scheduler

Steps to reproduce

install scheduler
create node with scheduler publish on option
run cron after the selected date

Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

🇺🇦Ukraine trishen Kharkiv

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.

  • 🇺🇸United States cedewey Denver, CO

    Steve, your patch worked great. Thanks so much!

  • 🇫🇷France GuillaumePacilly

    Hey, thanks a lot for the patch.

    I have a similar issue when the user set a "publish on" date in the past from the node add form. In that case another scheduler event is triggered (Prepublish).

    I have updated the patch to handle this case as well.

  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update over 1 year ago
    3 pass
  • 🇫🇷France GuillaumePacilly

    Previous patch missed service argument for the PublicationDateSubscriber

  • Status changed to Needs work about 1 year ago
  • 🇺🇸United States integratrix

    I tested patch #10 with Publication Date 8.x-2.0-beta7, Scheduler 2.0.2 and Drupal 10.2.2 and it gave me an error.

    TypeError: Drupal\publication_date\EventSubscriber\PublicationDateSubscriber::onSchedulerPublish(): Argument #1 ($event) must be of type Drupal\scheduler\SchedulerEvent, Drupal\scheduler\Event\SchedulerEvent given in Drupal\publication_date\EventSubscriber\PublicationDateSubscriber->onSchedulerPublish() (line 50 of modules/contrib/publication_date/src/EventSubscriber/PublicationDateSubscriber.php).

    Replacing use Drupal\scheduler\SchedulerEvent with use Drupal\scheduler\event\SchedulerEvent resolved error for me.

  • 🇮🇳India vikramsaini1609

    The Scheduler module was installed, but it is displaying an error stating that 'Drupal\scheduler\SchedulerEvents' does not exist in the module file. Therefore, I updated the class name from 'Drupal\scheduler\SchedulerEvents' to '\Drupal\scheduler\Event\SchedulerNodeEvents' in the module file.

  • 🇫🇷France mably

    Last patches are huge and make reviewing almost impossible.

    We need a simple MR targeting the specific problem of this issue.

  • 🇫🇷France mably

    Cannot reproduce on Drupal 11.1.7.

Production build 0.71.5 2024