Skip to content

Commit

Permalink
fix cleanup jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Nov 7, 2024
1 parent 6f3536f commit fea492f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/Jobs/CalculateUserSeedBonus.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ public function handle()
fwrite($fd, $logStr);
$costTime = time() - $beginTimestamp;
do_log(sprintf(
"$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds, sql: %s",
count($seedPointsUpdates), var_export($result, true), $costTime, $sql
"$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds",
count($seedPointsUpdates), var_export($result, true), $costTime
));
do_log("$logPrefix, sql: $sql", "debug");
}

/**
Expand Down
5 changes: 3 additions & 2 deletions app/Jobs/UpdateTorrentSeedersEtc.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ public function handle()
}
$costTime = time() - $beginTimestamp;
do_log(sprintf(
"$logPrefix, [DONE], update torrent count: %s, result: %s, cost time: %s seconds, sql: %s",
count($torrentIdArr), var_export($result, true), $costTime, $sql
"$logPrefix, [DONE], update torrent count: %s, result: %s, cost time: %s seconds",
count($torrentIdArr), var_export($result, true), $costTime
));
do_log("$logPrefix, sql: $sql", "debug");
}

/**
Expand Down
5 changes: 3 additions & 2 deletions app/Jobs/UpdateUserSeedingLeechingTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ public function handle()
}
$costTime = time() - $beginTimestamp;
do_log(sprintf(
"$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds, sql: %s",
$count, var_export($result, true), $costTime, $sql
"$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds",
$count, var_export($result, true), $costTime
));
do_log("$logPrefix, sql: $sql", "debug");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-11-03');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-11-08');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit fea492f

Please sign in to comment.