Add Start time and Runtime to ldap cron

This commit is contained in:
Brayan Pereyra
2025-10-09 00:43:07 +00:00
parent 9ab55866b9
commit 701e3060bb

View File

@@ -64,15 +64,18 @@ function run_auth_sources_sync($command, $args)
CLI::logging("Syncronization canceled 🚫\n",null, 'red');
return;
}
$startTime = microtime(true);
CLI::logging("Workspace \"$workspace\" found.......... ✅\n",null, 'green');
initWorkspace($workspace);
executeLdapCron();
/*
$language = new Language();
$language->createLanguagePlugin($command[0], $command[1]);
*/
$endTime = microtime(true);
$runtime = $endTime - $startTime;
CLI::logging("Syncronization completed 🎉🎉🎉\n", null, 'green');
CLI::logging("Start time: " . date('d-m-Y H:i:s', $startTime) . "\n", null, 'green');
CLI::logging("Runtime: " . round($runtime, 2) . " seconds\n", null, 'green');
} else {
CLI::logging("The command requires the workspace name\n");
}