Blogs
This article outlines steps to manage scheduled jobs in Liferay 7.1
Overview
Liferay 7.1 uses the Quartz Scheduler to schedule jobs for running background tasks.
Liferay administrators and developers sometimes require a live (runtime) view of the scheduled jobs and/or control of those jobs. The scheduled jobs may be Liferay platform tasks and/or custom tasks.
The scheduled jobs can be managed via many different tools and approaches.
This article considers use of the following tools:
- Scheduled Job Manager by Rivet Logic
- Scheduler Manager Gogo Shell Command by Antonio Musarra
See the Resources section below for download links.
There are many other tools and approaches available, but that is beyond the scope of this article.
Usage
List Scheduled Jobs
List Scheduled Jobs using Scheduled Job Manager
1/ Sign into Liferay server as admin user
2/ Navigate to "Control Panel > Configuration > Scheduled Job Manager".
e.g.
3/ View jobs
List Scheduled Jobs using Scheduler Manager in Gogo Shell
1/ Sign into Liferay as admin user
2/ Navigate to "Control Panel > Configuration > Gogo Shell".
3/ List jobs
e.g.
Pause Scheduled Job
Pause Scheduled Jobs - Scheduled Job Manager
1/ Sign into Liferay as admin user
2/ Navigate to "Control Panel > Configuration > Scheduled Job Manager".
3/ View jobs
4/ Select check box adjacent to job
5/ Click Pause button.
Pause Scheduled Jobs - Scheduler Manager Gogo Shell
1/ Sign into Liferay server as admin user
2/ Navigate to "Control Panel > Configuration > Gogo Shell".
3/ Find job "CheckAssetEntryMessageListener".
See "List Scheduled Jobs" above.
4/ Pause job "CheckAssetEntryMessageListener".
e.g.
g! scheduler:pause "com.liferay.asset.publisher.web.internal.messaging.CheckAssetEntryMessageListener" "com.liferay.asset.publisher.web.internal.messaging.CheckAssetEntryMessageListener" "MEMORY_CLUSTERED"
Resume Scheduled Job
Resume Scheduled Jobs - Scheduled Job Manager
1/ Sign into Liferay server as admin user
2/ Navigate to "Control Panel > Configuration > Scheduled Job Manager".
3/ View jobs
4/ Select check box adjacent to job
5/ Click Resume button.
Resume Scheduled Jobs - Scheduler Manager Gogo Shell
1/ Sign into Liferay server as admin user
2/ Navigate to "Control Panel > Configuration > Gogo Shell".
3/ Find job "CheckAssetEntryMessageListener".
See "List Scheduled Jobs" above.
4/ Resume job "CheckAssetEntryMessageListener".
g! scheduler:resume "com.liferay.asset.publisher.web.internal.messaging.CheckAssetEntryMessageListener" "com.liferay.asset.publisher.web.internal.messaging.CheckAssetEntryMessageListener" "MEMORY_CLUSTERED"
Resources
Scheduled Job Manager
- GitHub Tim Telcik - Liferay 7.1 Scheduled Job Manager v1.4.2
- NOTE: This fork of the Scheduled Job Manager supports Liferay CE Portal 7.1 GA1+ and Liferay DXP 7.1 GA1+.
- Liferay Marketplace - Scheduled Job Manager
- NOTE: The Liferay Marketplace release of the Scheduled Job Manager only supports Liferay CE Portal 6.2 and Liferay EE Portal 6.2.
- NOTE: Since initial publication of this web log in early 2020, the Scheduled Job Manager source code has moved
Scheduler Manager Gogo Shell Command
- GitHub Antonio Musarra - Scheduler Manager Gogo Shell Command
- NOTE: Supports Liferay 7.1+
Scheduled Tasks
- Liferay Marketplace - Scheduled Tasks
- NOTE: Supports Liferay 7.0+