firesphere/

healthcheckjobs

运行 symbiote/queuedjobs,并对 Healthchecks.io 端点进行启动/完成/失败的ping操作

0.1.0 2023-10-29 00:54 UTC

This package is auto-updated.

Last update: 2024-09-23 23:40:07 UTC


README

GPL v3 或更高版本

您可以选择自行托管健康检查,或在 healthchecks.io 上创建账户

如果没有设置标题,则将使用类名作为标题。

配置

---
name: my-healthchecks
---
Firesphere\HealthcheckJobs\Services\HealthcheckService:
  endpoint: 'https://health.example.com'
  api_key: 'my-api-key-here' # Note, API Keys are per PROJECT, not 

添加超时时间和宽限期

将以下内容添加到您的队列作业中

public function getTimeout()
{
    return $time_in_seconds;
}

public function getGrace()
{
    return $time_in_seconds;
}

添加cron格式化的计划

public function getSchedule()
{
    return '*/5 * * * *'; // A valid cron schedule
}