swoft
swoft copied to clipboard
swoft-crontab定时任务注解不能使用转义字符
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| Swoft version | 2.0.11 |
| Swoole version | 4.6.7 |
| PHP version | 7.2.20 nts |
| Runtime environment | Win10 WSL2 / docker |
Describe the bug 我想设置一个定时任务,每隔5 mins 去执行一遍检查,以下是书写方式(图一),但这样不能通过IDE检查,因此我添加了转义字符(图2)


接着运行程序,出现错误:

Details 我已经尝试了其他任何方式,都不成功。希望能够官方能够解决这个问题.
用@Cron("0 0/5 * * * *")这个就行了,每5分钟的第0秒执行