-
2.1.5 Stable
released this
2023-08-07 01:17:14 +00:00 | 0 commits to master since this releaseFixed
\TamerLib\tm > wait()
will output worker updates even if there are no jobs in the queue, this fixes a bug where
workers would not be updated if the client only callsdof()
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
2.1.4 Stable
released this
2023-07-29 12:47:48 +00:00 | 2 commits to master since this releaseFixed
\TamerLib\Classes > JobManager > connect()
re-constructs the Redis client before connecting to the server.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
2.1.3 Stable
released this
2023-07-27 21:54:30 +00:00 | 4 commits to master since this releaseChanged
\TamerLib\Classes > JobManager > disconnect()
now disconnects even if the server is still connected, this is to
prevent the server from being left in a bad state if the connection is lost.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
2.1.2 Stable
released this
2023-07-09 15:56:33 +00:00 | 7 commits to master since this releaseChanged
\TamerLib\tm > wait()
no longer throws a TimeoutException, the function will simply return when the timeout is
reached.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
2.1.1 Stable
released this
2023-07-07 06:30:00 +00:00 | 9 commits to master since this releaseFixed
- Fixed bug in JobManager in
\TamerLib\Classes > JobManager > returnJob()
and\TamerLib\Classes > JobManager > returnException()
where if the "return_channel" is empty instead of null, the job would be returned to an empty channel instead of
being dropped.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Fixed bug in JobManager in
-
2.1.0 Stable
released this
2023-07-07 04:31:51 +00:00 | 10 commits to master since this releaseAdded
- Implemented
ausleep()
in forTamerLib\Classes\ > JobManager
to allow TamerLib to monitor sub-processes and
workers without blocking the main thread. - Updated some methods in
TamerLib\Classes\ > JobManager
to use properties fromJobPacket
instead of calling
the server for the same information if the passed parameter (usually $job_id) is an instance ofJobPacket
,
this reduces the number of calls to the server and improves performance. - Updated some methods in
TamerLib > tm
to useasleep
instead ofsleep
to allow TamerLib to monitor sub-processes
and workers without blocking the main thread. - Added a custom redis configuration file to improve performance when running TamerLib on a single machine.
Changed
\TamerLib\Classes\ > RedisServer > start()
now starts the server with a matching logging level tonet.nosial.loglib
- Changed method
public static function do(string $function, array $arguments=[], int $channel=0): int
topublic static function do(string $function, array $arguments=[], ?callable $callback=null, array $options=[]): int
in\TamerLib > tm > do()
so that the$callback
parameter is now optional and will be used to handle the result of the job whentm::wait()
is called, additionally some options can be passed to the job such aschannel
for passing on the channel to the
function as previously done with the$channel
parameter. - Changed method
public static function dof(string $function, array $arguments=[], int $channel=0): void
to
public static function dof(string $function, array $arguments=[], array $options=[]): void
in\TamerLib > tm > dof()
to represent the changes made totm::do()
as described above. - Changed method
public static function wait(?callable $callback=null, int $timeout=0): void
to
public static function wait(int $timeout=0): void
as the function itself will now handle the result of the job
using the callback passed totm::do()
ortm::dof()
when the job is done.
Fixed
- Fixed synchronization issue in TamerLib where callbacks would run indefinitely if further jobs were added to the
queue while the callback was running.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Implemented