Skip to content

Releases: Comos/qpm

Improve the process status

25 Apr 04:07
Compare
Choose a tag to compare
Pre-release

Improve the process status.
Fix duplicate timeout test in OnForOneKeeper.

Neater APIs and Improved Supervision Features.

26 Mar 07:49
Compare
Choose a tag to compare

It's incompatible with v0.3.x.

Namespaces

The namespace prefix was changed to Comos\Qpm.
All namespaces are capitalized.
The directories are simplified.
It still follows the PSR-4 but more closely.
The changes of directory structures and name of packages:

  • qpm\logger (library/qpm/logger) -> Comos\Qpm\Log (src/Log)
  • qpm\supervisor (library/qpm/supervisor) -> Comos\Qpm\Supervision (src/Supervision)
  • process (library/qpm/process) -> Process (src/Process)
  • pidfile (library/qpm/pidfile) -> Pid (src/Pid)

Process

Removed MainProcess class.
Process::fork() is a static method now.
In old version, forking looks like follows:

Process::current()->fork($runnableInstance);
//or
Process::current()->forkByCallable($callback);

In current version, forking looks like this:

Process::fork($runnableInstance);
//or
Process::fork($callback);

# Supervision
Added "timeout" and "onTimeout" options to OneForOne mode in Supervisor.
Added "termTimeout" option to all modes of Supervisor.

Neater APIs and Improved Supervision Features.

24 Mar 16:22
Compare
Choose a tag to compare

It's incompatible with v0.3.x.

Namespaces

The namespace prefix was changed to Comos\Qpm.
All namespaces are capitalized.
The directories are simplified.
It still follows the PSR-4 but more closely.
The changes of directory structures and name of packages:

  • qpm\logger (library/qpm/logger) -> Comos\Qpm\Log (src/Log)
  • qpm\supervisor (library/qpm/supervisor) -> Comos\Qpm\Supervision (src/Supervision)
  • process (library/qpm/process) -> Process (src/Process)
  • pidfile (library/qpm/pidfile) -> Pid (src/Pid)

Process

Removed MainProcess class.
Process::fork() is a static method now.
In old version, forking looks like follows:

Process::current()->fork($runnableInstance);
//or
Process::current()->forkByCallable($callback);

In current version, forking looks like this:

Process::fork($runnableInstance);
//or
Process::fork($callback);

# Supervision
Added "timeout" and "onTimeout" options to OneForOne mode in Supervisor.

Task factory mode of supervisor supports timeout

20 Mar 01:29
Compare
Choose a tag to compare
0.3.1

added timeout option for TaskFactoryMode

不再使用 require_once 加载类

08 Mar 03:43
Compare
Choose a tag to compare

在这个版本,全面转向使用 autoload。
由于项目依赖 Psr\Log, 首选推荐使用Composer安装并使用其自带的autoload机制。

修复了若干Bug。

To support composer

06 Mar 13:57
Compare
Choose a tag to compare
To support composer Pre-release
Pre-release

支持 Composer
增加了composer.json
改变Tag命名形式