Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vincent66666 opened this issue Jun 23, 2020 · 3 comments
Closed

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

vincent66666 opened this issue Jun 23, 2020 · 3 comments

Comments

@vincent66666
Copy link

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

@Reasno
Copy link
Member

Reasno commented Jun 23, 2020

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

@Reasno Reasno closed this as completed Jun 25, 2020
@ajitrishabh
Copy link

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

@Reasno
Copy link
Member

Reasno commented Jun 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants