Add update consolidado command and queuing
This commit is contained in:
@ -27,12 +27,12 @@ class Queue extends Command {
|
||||
if ($response->getStatusCode() !== 200) {
|
||||
return Command::FAILURE;
|
||||
}
|
||||
$input = json_decode($response->getBody()->getContents());
|
||||
$data = json_decode($response->getBody()->getContents());
|
||||
$output = [
|
||||
'input' => $input,
|
||||
'input' => $data,
|
||||
'processed' => []
|
||||
];
|
||||
foreach ($input->pending as $queue) {
|
||||
foreach ($data->pending as $queue) {
|
||||
$log = "Running {$queue->command} from queue. Created in {$queue->created}.";
|
||||
error_log($log);
|
||||
$cmd = '/usr/local/bin/php /app/bin/console ' . $queue->cmd;
|
||||
|
Reference in New Issue
Block a user