update: add queue api

This commit is contained in:
tokumeikoi
2022-07-20 03:09:06 +08:00
parent adf465696a
commit df8ea58456
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,7 @@ use Laravel\Horizon\Contracts\MasterSupervisorRepository;
class SystemController extends Controller
{
public function getStatus()
public function getSystemStatus()
{
return response([
'data' => [
@ -33,6 +33,11 @@ class SystemController extends Controller
]);
}
public function getQueueStatus()
{
}
protected function getScheduleStatus():bool
{
return (time() - 120) < Cache::get(CacheKey::get('SCHEDULE_LAST_CHECK_AT', null));