easy-swoole / easy-swoole/task

任务投递报错

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.