智慧教务系统 PHP-NiuCloud框架开发
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
949 B

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\job\sys;
use core\base\BaseJob;
/**
* 校验队列是否在正常运行
*/
class CheckJob extends BaseJob
{
public function doJob($file)
{
file_put_contents($file, time());
//todo 部署一个十五秒后再校验一次删除这个文件
CheckDeleteJob::dispatch(['file' => $file], secs: 8);
return true;
}
}