Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
LIferay 7.2 - How to create a Schedule?
Hi,
I need to implement a schedule that does something at 2 AM everyday. I have been researching about this and all the examples that I found have deprecated methods with no direct replacements (eg. https://liferay.dev/blogs/-/blogs/liferay-7-ce-liferay-dxp-scheduled-tasks).
I wonder if the schedule is built differently nowadays. Is there any documentation or example on how to create a schedule?
I need to implement a schedule that does something at 2 AM everyday. I have been researching about this and all the examples that I found have deprecated methods with no direct replacements (eg. https://liferay.dev/blogs/-/blogs/liferay-7-ce-liferay-dxp-scheduled-tasks).
I wonder if the schedule is built differently nowadays. Is there any documentation or example on how to create a schedule?
Hi
you can refer this link explanation is given
https://www.surekhatech.com/blog/scheduler-in-liferay-7-1-d-1HTH!
you can refer this link explanation is given
https://www.surekhatech.com/blog/scheduler-in-liferay-7-1-d-1HTH!
I am still having issues with this. I have followed the guides and deployed my module, but the "doReceive" method never get called. Am I supposed to activate the schedule manually?
EDIT: it seems I was doing a wrong cron expression. It is working now.
EDIT: it seems I was doing a wrong cron expression. It is working now.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™