Skip to content

Releases: aternosorg/taskmaster

v1.2.0

10 Jul 11:54
fb5660f
Compare
Choose a tag to compare

detect grpc fork support

This release might change your worker selection from ForkWorker to ProcessWorker if you have the grpc extension installed. More info

Full Changelog: v1.1.4...v1.1.5

v1.1.4

10 Jul 07:53
9a17344
Compare
Choose a tag to compare

Allow definition of init task after adding workers

Full Changelog: v1.1.3...v1.1.4

v1.1.3

29 Jan 10:53
f89230a
Compare
Choose a tag to compare

Fall back to sync worker on Windows

v1.1.2

26 Jan 14:31
d12f73e
Compare
Choose a tag to compare

What's Changed

  • Update year in LICENSE by @pavog in #3
  • send socket messages in chunks, test larger messages by @matthi4s in #4

Full Changelog: v1.1.1...v1.1.2

v1.1.1

12 Dec 09:02
d3a854b
Compare
Choose a tag to compare
return this from set default init task

v1.1.0

11 Dec 18:20
2875a4f
Compare
Choose a tag to compare

Added init tasks

You can now define tasks that are executed on every worker instance before the first task is executed.
This is helpful to run some initial setup or (in case of the ForkWorker)
to clear some variables that are inherited from the parent process, e.g. database connections.

// init tasks are always provided by a task factory
$taskmaster->setDefaultInitTaskFactory(new InitTaskFactory());

// but taskmaster can create task factories automatically by cloning or instancing a task
$taskmaster->setDefaultInitTask(new InitTask());
$taskmaster->setDefaultInitTask(InitTask::class);

// you can also define a task factory for a specific worker
$worker->setInitTaskFactory(new InitTaskFactory());

v1.0.1

03 Nov 11:49
39d8539
Compare
Choose a tag to compare
preload php error class

v1.0.0

30 Oct 16:01
69e60b8
Compare
Choose a tag to compare
added special sync handling function for tasks