Message Boards

Liferay 7.2 - Scheduled web contents are not being published

Fabio Carvalho, modified 3 Years ago.

Liferay 7.2 - Scheduled web contents are not being published

Junior Member Posts: 81 Join Date: 6/25/19 Recent Posts
Hello,

I have a problem with my web contents. If I set a display date in the future for my web content, the web content is set to the status "Approved" and "Scheduled" as it should.  The problem is, when this date is reached, the web content continues scheduled until we edit the web content and publish it manually.

First I thought it should be a problem with timezones or something similar. So I double-checked all my settings regarding timezones and it is all set correctly. But to be sure, e created a new web content with a display date for the next 3 days. I have already waited 5 days and the web content is still scheduled.

So I tried a new kind of tests: I scheduled a web content for the next 5 minutes. Waited the 5 minutes and the web content is still scheduled. But if I edit and publish it manually, the web content stops being scheduled.

It looks like the process to detect if the scheduled date has arrived is not being automatically triggered. Any leads of what is wrong here? Should I check some setting or some service wrapper could be broking the default Liferay behaviour?
thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Liferay 7.2 - Scheduled web contents are not being published

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
The scheduler runs every 15 minutes, I think. So, waiting 5 minutes is not enough for a test.
Which Liferay version are you using?
Can you enable debug logging for "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl", please?
You should see some debug output in the logfile when the scheduler is executed and calls the checkArticles() method.
https://github.com/liferay/liferay-portal/blob/master/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/service/impl/JournalArticleLocalServiceImpl.java
Fabio Carvalho, modified 3 Years ago.

RE: Liferay 7.2 - Scheduled web contents are not being published

Junior Member Posts: 81 Join Date: 6/25/19 Recent Posts
Hi Christoph,

I understand that the 5 min test is not working because of the scheduler that runs every 15 minutes. But the web content that has a display date for 3 days ago should be published already.

I will enable debugging and update as soon as I know something else. Thank you for your answer.