Skip to content

Commit

Permalink
force int type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrisrp committed Jun 12, 2024
1 parent 8e8e205 commit d6beb2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions inc/Engine/Preload/Controller/PreloadUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ protected function get_mobile_user_agent_prefix() {
* @return void
*/
public function process_pending_jobs() {

$pending_actions = $this->queue->get_pending_preload_actions();

// Retrieve batch size limits and request timing estimation.
Expand Down Expand Up @@ -271,7 +270,7 @@ function ( $row ) use ( $pending_actions ) {

// Make those hanging jobs failed.
foreach ( $stuck_rows as $row ) {
$this->query->make_status_failed( $row->id );
$this->query->make_status_failed( (int) $row->id );
}

// Add new jobs in progress.
Expand All @@ -283,7 +282,7 @@ function ( $row ) use ( $pending_actions ) {
continue;
}

$this->query->make_status_inprogress( $row->id );
$this->query->make_status_inprogress( (int) $row->id );
$this->queue->add_job_preload_job_preload_url_async( $row->url );

}
Expand Down

0 comments on commit d6beb2f

Please sign in to comment.