Closed danifernandezs closed 3 months ago
Can the complete file be like the following?
#!/usr/bin/env php
<?php
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\HttpFoundation\Request;
// require Composer's autoloader
require __DIR__.'/../config/bootstrap.php';
$input = new ArgvInput();
$env = $input->getParameterOption(['--env', '-e'], getenv('APP_ENV') ?: 'dev');
$kernel = new Kernel($env, false);
$request = new Request([], [], [], [], [], ['REQUEST_URI' => '/billable-calls-historic']);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
if ($response->getStatusCode() >= 300) {
die(1);
}
Hi @danifernandezs
Looks like you're on the right track and this microservice has not been properly adapted. We'll try to investigate it further and make any required corrections for the next release.
Also, sorry for the late response and thanks for reporting!!
Description
The ivozprovider-scheduler-historic-calls.service is in failed state due to midding MicroKernel.php file
Referenced in line 10 https://github.com/irontec/ivozprovider/blob/tempest/microservices/scheduler/bin/run-billable-calls-historic#L10
And in line 15 https://github.com/irontec/ivozprovider/blob/tempest/microservices/scheduler/bin/run-billable-calls-historic#L15
After checking the rest of the scripts, they are using the bootstrap.php files instead of the MicroKernel.php one
IvozProvider version: Tempest 4.0.5
Related sections:
Troubleshooting
Additional Information
By modifying the file to use the bootstrap.php file instead of the MicroKernel, and calling Kernel instead of the MicroKernel, the service starts and runs without problems