hyperf / nano

🧬 Nano is a zero-config, no skeleton, minimal Hyperf distribution that allows you to quickly build a Hyperf application with just a single PHP file.

Home Page:https://nano.hyperf.wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addCrontab 添加的定时任务没有执行

vincent66666 opened this issue · comments

$app->addCrontab('* * * * * *', function(){
$this->get(StdoutLoggerInterface::class)->info('execute every second!');
});
addCrontab 添加的定时任务没有运行执行

第一个整分之后才会开始执行 和hyperf一样。

Hi Reasno,
can you help me how i can run this in background of my application hosted on Cloud foundry?

Hi Reasno,
can you help me how i can run this in background of my application hosted on Cloud foundry?

You can try the official docker image provided by hyperf. Just change the entry point to whatever you need.

https://github.com/hyperf/hyperf-docker