mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
Tune seed bonus job batch and timeouts
Signed-off-by: Qi HU <github@spcsky.com>
This commit is contained in:
@@ -47,7 +47,7 @@ class CalculateUserSeedBonus implements ShouldQueue
|
||||
|
||||
public $tries = 1;
|
||||
|
||||
public $timeout = 3600;
|
||||
public $timeout = 120;
|
||||
|
||||
/**
|
||||
* 获取任务时,应该通过的中间件。
|
||||
@@ -72,6 +72,7 @@ class CalculateUserSeedBonus implements ShouldQueue
|
||||
$this->requestId, $this->beginUid, $this->endUid, $this->idStr, $this->idRedisKey
|
||||
);
|
||||
do_log("$logPrefix, job start ...");
|
||||
|
||||
$haremAdditionFactor = Setting::get('bonus.harem_addition');
|
||||
$officialAdditionFactor = Setting::get('bonus.official_addition');
|
||||
$donortimes_bonus = Setting::get('bonus.donortimes');
|
||||
|
||||
@@ -37,7 +37,7 @@ class CleanupRepository extends BaseRepository
|
||||
|
||||
private static int $oneTaskSeconds = 0;
|
||||
|
||||
private static int $scanSize = 1000;
|
||||
private static int $scanSize = 500;
|
||||
|
||||
public static function recordBatch(\Redis $redis, $uid, $torrentId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user