Skip to content

Commit

Permalink
GP-44423 Display background execution status in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mflandorfer committed Jan 23, 2024
1 parent f9db213 commit 585e7e4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CRM/Sepa/Page/DashBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,17 @@ function callBatcher($mode) {
if ($async_batching) {
// use the runner rather that the API (this doesn't return)
CRM_Sepa_Logic_Queue_Update::launchUpdateRunner($mode);
CRM_Utils_System::civiExit();

CRM_Core_Session::setStatus(ts(
"Tasks for updating SEPA %1 mandates have been added to a queue for background execution",
[
1 => $mode,
'domain' => 'org.project60.sepa',
],
'info'
));

CRM_Utils_System::redirect('/civicrm/sepa/dashboard');
}

if ($mode=="OOFF") {
Expand Down

0 comments on commit 585e7e4

Please sign in to comment.