Skip to content

Commit

Permalink
Do not typecast PID to int
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Jan 13, 2019
1 parent 5577bc7 commit c2a76de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/Table/QueuedJobsTable.php
Expand Up @@ -794,7 +794,7 @@ public function getProcesses($forThisServer = false) {
/**
* Soft ending of a running job, e.g. when migration is starting
*
* @param int $pid
* @param string $pid
* @return void
*/
public function endProcess($pid) {
Expand Down
4 changes: 2 additions & 2 deletions src/Shell/QueueShell.php
Expand Up @@ -289,15 +289,15 @@ public function end($in = null) {

if ($in === 'all' || $in === 'server') {
foreach ($processes as $process => $timestamp) {
$this->QueuedJobs->endProcess((int)$process);
$this->QueuedJobs->endProcess($process);
}

$this->out('All ' . count($processes) . ' processes ended.');

return;
}

$this->QueuedJobs->endProcess((int)$in);
$this->QueuedJobs->endProcess($in);
}

/**
Expand Down

0 comments on commit c2a76de

Please sign in to comment.