ipl / scheduler
Icinga PHP 库 - 任务调度器
v0.1.2
2023-08-30 14:14 UTC
Requires
- php: >=7.2
- ext-json: *
- dragonmantank/cron-expression: ^3
- ipl/stdlib: >=0.12.0
- psr/log: ^1
- ramsey/uuid: ^4.2.3
- react/event-loop: ^1.4
- react/promise: ^2.10
- simshaun/recurr: ^5
Requires (Dev)
- ipl/stdlib: dev-main
Suggests
- ext-ev: Improves performance, efficiency and avoids system limitations. Highly recommended! (See https://php.ac.cn/manual/en/intro.ev.php for details)
This package is auto-updated.
Last update: 2024-09-17 11:14:21 UTC
README
框架无关的调度器,在事件循环中定期执行任务或在特定时间执行一次。任务是纯PHP代码,频率由cron表达式定义。产生事件,您可以安装监听器
- 当任务操作被安排时,
- 当运行任务操作时,
- 当任务操作完成或失败时,
- 以及当任务被取消或过期时。
已安排或正在运行的任务可以随时移除或取消。
安装
安装此库的推荐方法是使用Composer
composer require ipl/scheduler