swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

自定义进程,怎么调用task::async呢?2.0.11 #1498

Open kjlixx opened 1 year ago

kjlixx commented 1 year ago

我想开一个进程,然后调用task异步来操作,请问swoft怎么实现

kjlixx commented 1 year ago

自定义用户进程,报错信息: WARNING Server::reply_task_result(): Server::finish() can only be used in the worker process

LGFModel commented 1 year ago

一模一样:我想定时处理一些任务 定时异步处理,结果和你出现了一模一样的问题

kjlixx commented 1 year ago

@LGFModel 换了hyperf了😅