How to manage scheduled jobs in Liferay 7.1

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:

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

Scheduler Manager Gogo Shell Command

Scheduled Tasks

 

References

Blogs

Hi Tim.

The version 1.3.0 of the my project  Scheduler Manager Gogo Shell Command, added support for Liferay 7.2.0. Tested on Liferay 7.2.0 GA1 Community Edition.

Hi Tim,

Thank you for updating "Scheduled Job Manager" portlet to 7.1.

 

Do you think it could be possible to upload it to Liferay Marketplace? Thank you!

Hola Jorge,

 

the official "Scheduled Job Manager" project is managed by Rivet Logic.

 

I understand the release of the "Scheduled Job Manager" for Liferay 7.1 is currently in the project back log.

 

May I suggest you contact Rivet Logic directly via contact details at ...

 

https://www.rivetlogic.com/about/contact-us

 

... and ask about a potential schedule for progressing pull request #16 at

 

https://github.com/rivetlogic/liferay-scheduled-job-manager/pull/16

 

... and a potential schedule for publishing "Scheduled Job Manager" for Liferay 7.1.

Regards,

Tim

 

Hi Tim Telcik , Thank you for the information, I will try sending them an email. Nevertheless you can always upload it separately as a different application with a different name.

For example:

  - "Scheduled Job Manager 7.1"

  - " Scheduled Job Manager by Tim"

 

:-D

 

Regards,

Jorge

Awesome post! Thanks so much for taking the time to share this!

 

Step 1: Select StorageType of your scheduler. The First thing you need to decide is the storageType which you are going to select for your scheduler. ...

Step 2: Create a Scheduler Class. ...

Step 3: Override Unimplemented Method. ...

Step 4: Register The Scheduler. ...

Step 5: Deactivate Scheduler.

Awesome post! Thanks so much for taking the time to share this!

 

Step 1: Select StorageType of your scheduler. The First thing you need to decide is the storageType which you are going to select for your scheduler. ...

Step 2: Create a Scheduler Class. ...

Step 3: Override Unimplemented Method. ...

Step 4: Register The Scheduler. ...

Step 5: Deactivate Scheduler.   <a href="https://www.mcdvoice.one/">McDVOICE</a>