Added crons

This commit is contained in:
CHIEFSOFT\ameye
2024-02-03 11:59:44 -05:00
parent 604c5eb61f
commit 78c103b1f5
3 changed files with 17 additions and 1 deletions
@@ -157,6 +157,9 @@ enum { PARTNER_STRIPE };
#define WRB_CRONJOB_PENDOFFER_ALERT 776
#define WRB_CRONJOB_NOTIFICATIONS 777
#define WRB_CRONJOB_GROUPJOBS 778
#define WRB_CRONJOB_PENDINGSM 790
//**************************************************************
#define WRENCHBOARD_BKO_START 10000
+13
View File
@@ -96,7 +96,20 @@ long sitecrons_calls(CVars in, CVars &out) {
ct["description"]="Notification System "; ct["description"].set_valid( true );
CronTracker(ct, co);
return NotificationSystem(in, out);
break;
case WRB_CRONJOB_PENDINGSM:
ct["job_type"]="WRB_CRONJOB_PENDINGSM"; ct["job_type"].set_valid( true );
ct["description"]="Alert Pending Transfers "; ct["description"].set_valid( true );
CronTracker(ct, co);
return 0; //NotificationSystem(in, out);
break;
case WRB_CRONJOB_GROUPJOBS:
ct["job_type"]="WRB_CRONJOB_GROUPJOBS"; ct["job_type"].set_valid( true );
ct["description"]="Job Group Processing"; ct["description"].set_valid( true );
CronTracker(ct, co);
return 0; //NotificationSystem(in, out);
break;
}
+1 -1
View File
@@ -115,7 +115,7 @@ class WrenchCrons extends BaseController
$in['call_action'] = WRB_CRONJOB_PENDINGSM;
$in['one_limit'] = 10;
$in['mode'] = 100;
$ret['WRB_CRONJOB_PENDOFFER_ALERT_100'] = $wrenchboard->wrenchboard_api($in, $out);
$ret['WRB_CRONJOB_PENDINGSM'] = $wrenchboard->wrenchboard_api($in, $out);
return $this->response->setJson($out);
}