create worker, work and die )
- Dominant language
- PHP
- Stars
- 11.6k
- Forks
- 2.2k
- Avg merge
- 11h 30m
- Merged PRs (30d)
- 3
Description
Hi, i need to create worker **inside other worker** and then correctly stop(destroy) it after it do some job.
something like that:
```
$small_worker = new Worker();
$small_worker->onWorkerStart = function() use (&$small_worker) {
echo "I've worked and that's enough.\n";
//$small_worker->stop(); //does not work (
//Worker::stop(); //does not work (
die(); // work, but i'm not sure if it's right
}
```
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file, test, or entry point is named. Start by locating the Worker class and its onWorkerStart and stop lifecycle handling, then check the documented way to terminate a worker created inside another worker. Done means confirming a supported approach or clearly documenting the limitation, with a focused reproduction or test if the project supports one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100