easy-swoole / easy-swoole/task
任务投递报错
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
秒级定时器里有个循环,循环里有投递任务模板,在运行几个小时后,会抛出序列化闭包错误!不知道是不是我使用的姿势不对
[2020-05-05 16:57:47][DEBUG][NOTICE] : [Serialization of closure failed: The closure was not found within the abstract syntax tree. at file:/www/wwwroot/pro/vendor/jeremeamia/superclosure/src/SerializableClosure.php line:116]
[2020-05-05 16:57:47][DEBUG][ERROR] : [The closure did not unserialize to a SuperClosure. at file:/www/wwwroot/pro/vendor/jeremeamia/superclosure/src/Serializer.php line:110]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in the reported second-level timer loop that repeatedly dispatches a task template. Read the serialization errors in vendor/jeremeamia/superclosure/src/SerializableClosure.php and Serializer.php, then determine what reliably prevents the closure from being found or unserialized after several hours. Done means the repeated dispatch no longer produces either reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100