Listing of last run time of system jobs

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Listing of last run time of system jobs

hpaks23@gmail.com
Hello,

I am trying to list out the last run time of system jobs in dotcms. It will be posted to a portlet from dynamic plugin. Is there a way to get this info off of system jobs?

Any help is appreciated!!
Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Listing of last run time of system jobs

Nathan Keiter

This might be a starting point for you.

 

Last run time might be a property of the Trigger object. In my example I am getting next run time.

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.quartz.job.killer/src/main/java/org/example/nkeiter/quartz/job/killer/osgi/Activator.java#L55-L84

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, December 13, 2017 2:42 PM
To: dotCMS User Group
Subject: [dotcms] Listing of last run time of system jobs

 

Hello,

 

I am trying to list out the last run time of system jobs in dotcms. It will be posted to a portlet from dynamic plugin. Is there a way to get this info off of system jobs?

 

Any help is appreciated!!

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/95181463b75c4e779a80f9f850acd494%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Listing of last run time of system jobs

hpaks23@gmail.com
Thank you Nathan!! It worked for me.

On Wednesday, December 13, 2017 at 2:13:17 PM UTC-6, Nathan Keiter wrote:

This might be a starting point for you.

 

Last run time might be a property of the Trigger object. In my example I am getting next run time.

 

<a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.quartz.job.killer/src/main/java/org/example/nkeiter/quartz/job/killer/osgi/Activator.java#L55-L84" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.quartz.job.killer%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fquartz%2Fjob%2Fkiller%2Fosgi%2FActivator.java%23L55-L84\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHhO_cM-31GNYSJi2fTfgRFFNV-oQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.quartz.job.killer%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fquartz%2Fjob%2Fkiller%2Fosgi%2FActivator.java%23L55-L84\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHhO_cM-31GNYSJi2fTfgRFFNV-oQ&#39;;return true;">https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.quartz.job.killer/src/main/java/org/example/nkeiter/quartz/job/killer/osgi/Activator.java#L55-L84

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HgY6ugfoBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="HgY6ugfoBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HgY6ugfoBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...
Sent: Wednesday, December 13, 2017 2:42 PM
To: dotCMS User Group
Subject: [dotcms] Listing of last run time of system jobs

 

Hello,

 

I am trying to list out the last run time of system jobs in dotcms. It will be posted to a portlet from dynamic plugin. Is there a way to get this info off of system jobs?

 

Any help is appreciated!!

Thank you!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HgY6ugfoBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="HgY6ugfoBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/849c1d72-ac21-4141-b22d-840aaf486771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Listing of last run time of system jobs

Nathan Keiter

Glad I could help.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, December 14, 2017 12:33 PM
To: dotCMS User Group
Subject: Re: [dotcms] Listing of last run time of system jobs

 

Thank you Nathan!! It worked for me.

On Wednesday, December 13, 2017 at 2:13:17 PM UTC-6, Nathan Keiter wrote:

This might be a starting point for you.

 

Last run time might be a property of the Trigger object. In my example I am getting next run time.

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.quartz.job.killer/src/main/java/org/example/nkeiter/quartz/job/killer/osgi/Activator.java#L55-L84

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Wednesday, December 13, 2017 2:42 PM
To: dotCMS User Group
Subject: [dotcms] Listing of last run time of system jobs

 

Hello,

 

I am trying to list out the last run time of system jobs in dotcms. It will be posted to a portlet from dynamic plugin. Is there a way to get this info off of system jobs?

 

Any help is appreciated!!

Thank you!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/849c1d72-ac21-4141-b22d-840aaf486771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5d03b8ea522c4f0f845675ec467db65e%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.