Jump to content

7.1 ticket escalation cron despite having no ticket escalations setup


xyzulu

Recommended Posts

Absolutely ridiculous state of affairs which makes the Activity Log useless!

 

Why report that you are running a scheduled job? I know it runs as I set the cron......

 

Why not instead report that ticket "xyz" has been escalated (as a result of the job running) etc? Not just reporting that the job has run... do the developers actually understand what we are using this software for?

 

Please backup your DB's but what I use to get some clarity is an SQL query of:

 

DELETE FROM `tblactivitylog` WHERE `description` = "Automated Task: Starting Ticket Escalation Rules"

 

Hope this helps.

Link to comment
Share on other sites

i recently had another cron issue which was fixed and this is what i was told regarding this issue

 

Regarding the Automated Task: Starting Ticket Escalation Rules entry, case #CORE-10828 is open with our developers in order to have this reviewed for future releases. Once we resolve cases and push features they are available at our change log, here:

http://changelog.whmcs.com/

Link to comment
Share on other sites

We added the following hook and it's working a treat. YMMV.

 

<?php 
/* Delete all references to "Automated Task: Starting Ticket Escalation Rules" from the Activity widget */
use Illuminate\Database\Capsule\Manager as Capsule; 
function clean_ticket_escalation_rules($vars) 
{ 
   Capsule::table('tblactivitylog')->where('description', '=', 'Automated Task: Starting Ticket Escalation Rules')->delete(); 
} 

/* Clean the activity log each time the cron has been run */
add_hook('AfterCronJob', 1, clean_ticket_escalation_rules );

Link to comment
Share on other sites

We added the following hook and it's working a treat. YMMV.

 

<?php 
/* Delete all references to "Automated Task: Starting Ticket Escalation Rules" from the Activity widget */
use Illuminate\Database\Capsule\Manager as Capsule; 
function clean_ticket_escalation_rules($vars) 
{ 
   Capsule::table('tblactivitylog')->where('description', '=', 'Automated Task: Starting Ticket Escalation Rules')->delete(); 
} 

/* Clean the activity log each time the cron has been run */
add_hook('AfterCronJob', 1, clean_ticket_escalation_rules );

Very useful hook!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated