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

SyncWorkers do not run the init task before the first regular task #6

Open
KurtThiemann opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@KurtThiemann
Copy link
Member

When using a SyncWorker in Taskmaster, the init task is run after the first regular task.

$taskmaster = new Taskmaster();
$taskmaster->addWorker(new SyncWorker());
$taskmaster->setDefaultInitTask(new InitTask());

$task = new InitValidateTask();
$taskmaster->runTask($task);
$taskmaster->wait();

$task->getResult(); //false
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

1 participant