-
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)
5 downloads
-
Source code (TAR.GZ)
7 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)
3 downloads
-
Source code (TAR.GZ)
3 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)
2 downloads
-
Source code (TAR.GZ)
4 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)
2 downloads
-
Source code (TAR.GZ)
3 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)
3 downloads
-
Source code (TAR.GZ)
3 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\ > JobManagerto allow TamerLib to monitor sub-processes and
workers without blocking the main thread. - Updated some methods in
TamerLib\Classes\ > JobManagerto use properties fromJobPacketinstead 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 > tmto useasleepinstead ofsleepto 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=[]): intin\TamerLib > tm > do()
so that the$callbackparameter 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 aschannelfor passing on the channel to the
function as previously done with the$channelparameter. - Changed method
public static function dof(string $function, array $arguments=[], int $channel=0): voidto
public static function dof(string $function, array $arguments=[], array $options=[]): voidin\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): voidto
public static function wait(int $timeout=0): voidas 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)
3 downloads
-
Source code (TAR.GZ)
3 downloads
- Implemented