2023-02-01 23:42:41 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require 'ncc';
|
|
|
|
|
2023-02-02 21:09:45 -05:00
|
|
|
import('net.nosial.tamerlib', 'latest');
|
2023-02-01 23:42:41 -05:00
|
|
|
|
2023-02-02 21:09:45 -05:00
|
|
|
$client = new \Tamer\Protocols\Gearman\Client();
|
2023-02-01 23:42:41 -05:00
|
|
|
$client->addServer();
|
|
|
|
|
2023-02-02 21:09:45 -05:00
|
|
|
$client->doClosure(function () {
|
|
|
|
require 'ncc';
|
|
|
|
import('net.nosial.loglib', 'latest');
|
|
|
|
|
|
|
|
\LogLib\Log::info('gearman_closure.php', 'closure');
|
2023-02-01 23:42:41 -05:00
|
|
|
});
|