|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
1
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting comma...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76114
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76115
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76116
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76117
|
|
Firefox• 0FileEditViewHistory→BookmarksProfilesToo Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76120
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76121
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76126
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1035
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"co...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76127
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1334
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76130
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1334
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76131
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
3
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1081
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: Jiminny\...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76136
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
3
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1081
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"9c3aea71-9761-47b7-92fc-a4ef19a0a77d","trace_id":"91d53b24-d78f-4820-ab09-6ec3828fbe58"}
[2026-04-24 06:52:16] local.INFO: Jiminny\...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76137
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1081
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconn...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76138
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1081
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconn...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76139
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76140
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76141
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76142
|
|
Firefox• 0FileEditViewHistory→BookmarksProfilesToo Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76143
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
5
1
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1293
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\C...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76144
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
5
1
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
1293
Previous Highlighted Error
Next Highlighted Error
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:04] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"56544ba5-de8a-4826-9181-c1f98b641c2d","trace_id":"0d23b863-4f54-4038-a81e-1e6b14b68993"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"57b8f721-5f9c-4555-b09f-7b30b6bb53bd","trace_id":"ac32f526-cd51-4a22-9072-6555fd1d93ce"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring start {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:07] local.NOTICE: Monitoring end {"correlation_id":"0b7c3dc7-b6c4-472c-ae7d-ecef8343b516","trace_id":"4f7f4930-fb6f-4bba-aecd-eb890ad2b5ee"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"84127380-7279-44d6-862c-15b2b5cba112","trace_id":"c6aa7cf2-9521-4a71-b23b-cf1fa98ea707"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"48ee9d4b-28ae-434f-98c1-370869a770f3","trace_id":"24b268f4-e271-446f-9128-d2c93e688267"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:46:00, 2026-04-24 06:48:00] {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9f6b9c79-fd3b-49e7-9569-92581a34675d","trace_id":"c29e3d24-0809-4cec-a901-51862bce4478"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:48:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f7242472-e47d-4264-b55d-829ff8be2c5b","trace_id":"5eebd870-6b02-484c-b745-10409d1fe0c5"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"aff99469-890e-4cba-8180-94bde4d3534c","trace_id":"790b556a-cbe9-45e9-810a-17bf7c990890"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a3c6d64e-f5b0-4121-b91b-fbfe9af7099a","trace_id":"11a3f95e-d63b-4cb5-aba4-b9e58ff8934e"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring start {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:09] local.NOTICE: Monitoring end {"correlation_id":"f4d7c718-edf2-483e-ad2b-9169874c562e","trace_id":"f0359ff4-fa71-4aac-9608-628afec9169c"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:11] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e223f369-299d-468b-b8ce-dc7baba9d1b7","trace_id":"f752f93d-7539-47e9-a382-2a3c05e3f5f5"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:49:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"1aea0c69-a12a-4dea-9086-5025cc2acf9a","trace_id":"88150f1a-58ff-4630-b3cc-d046385ce8e6"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:05] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"847362a0-e64a-4911-b1df-1cae17602e06","trace_id":"00e228dc-31e4-435b-be9d-82fbdc420e85"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"4919f2fc-ac0f-49ef-9b0f-e26b2a0b7912","trace_id":"721f8235-dddd-40de-90a8-9a14a32d856f"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring start {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:08] local.NOTICE: Monitoring end {"correlation_id":"897a3f0a-6c49-460e-bd18-6f91dfbd5a67","trace_id":"2efbe337-2fd0-4211-b476-f17b55af1d55"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e163137d-4641-448c-a413-f3ead863e146","trace_id":"d2880d91-f696-4bca-a02c-6ed81132a670"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:12] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"f1ce5bf8-b183-40c2-bb1d-68a91e8635cc","trace_id":"7a286103-dbbf-4be9-88e4-3c006ebd5bf2"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Running conference:monitor:count command for activities in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: [conference:monitor:count] No activities found in (2026-04-24 06:48:00, 2026-04-24 06:50:00] {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:14] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:count","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3ab50ecc-1705-4147-a4ac-3eafadffea4c","trace_id":"8ae2174e-9bfd-416d-9c90-2e0a38574878"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:17] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"activity:purge-stale","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"90fffe11-1dfe-4e38-89b9-2b4cf1e84d98","trace_id":"29726f94-b499-4d08-832c-899ec6292a1d"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:20] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:text-relay:sync","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"60579884-4b2f-4267-985b-5b54d4b9b059","trace_id":"5ec898f5-f766-429e-8119-44757f963437"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Running pre-meeting notification command {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:22] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-notification","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"6177223e-e80f-44b7-bbab-c013be68b64b","trace_id":"74d0758b-a03f-46f9-a2c3-d84a637888c8"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Running conference:monitor:start command for activities in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: [conference:monitor:start] No activities found in (2026-04-24 06:40:00, 2026-04-24 06:45:00] {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:24] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:start","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"5cf42365-673c-408b-8264-25f09c8f7df3","trace_id":"e6a7e6cd-e7c3-4f93-a0db-967b6b3636ef"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesEnded {"from":"06:45","to":"06:50"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: conference:monitor:end:Jiminny\Console\Commands\Activities\MonitorMeetingEndCommand::logActivitiesWithUnfinishedSession {"from":"20:40","to":"20:45"} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:26] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:monitor:end","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"a18f4c7a-1d0e-484c-ae9e-f167ca35d418","trace_id":"bab2b18f-3f07-4c39-8ead-026abb19e766"}
[2026-04-24 06:50:28] local.NOTICE: Repairing HubSpot tokens start {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":59,"provider":"hubspot","refreshToken":"97b78f6e2cc49965c00c2492b602b02708b1392551e6b3f113fbaa48992af90b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":59,"updated_at":"2025-10-03 09:32:05","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":306,"provider":"hubspot","refreshToken":"6fa6aa8cc641d131231acc3470f5c03cb3b07b2e580fb18f8acb3b1dbb72549b","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.ERROR: Failed to refresh HubSpot token {"account_id":306,"updated_at":"2023-11-27 09:30:03","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: Trying to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:28] local.INFO: [SocialAccountService] Refreshing token from provider {"socialAccountId":1372,"provider":"hubspot","refreshToken":"9aa73948c761da29dce46c177cf9aee1fde483a44169ca38723f9f0597d7a8c4","state":"full-refresh"} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.ERROR: Failed to refresh HubSpot token {"account_id":1372,"updated_at":"2025-10-02 14:47:06","reason":"missing or invalid refresh token","previous":""} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:29] local.NOTICE: Repairing HubSpot tokens end {"total":3,"fixed":0,"failed":3} {"correlation_id":"c3ba63e5-b66d-4a59-8ee1-3f16fe1faf00","trace_id":"dac7d476-b81b-4c1a-ab51-821580fd2f6c"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"jiminny:transcription:retry-failed","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"b2f7d272-6a89-46d8-a0b9-0ea318be4ec3","trace_id":"cc9fe585-ff61-4b31-b1a9-bac245936991"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Command] Starting polling service {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Service starting {"memory_limit":"256M","max_execution_time":"0","initial_memory_mb":60.0} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Acquired polling lock {"expires_at":"2026-04-24T06:52:37.250784Z"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:37] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"conference:pre-meeting-reminder","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"cf52a9f1-990c-4062-b672-29f0e31335ed","trace_id":"8912612b-445e-4e60-ae30-6dea50b3459e"}
[2026-04-24 06:50:37] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:39] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:reset-governor","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"11a84c4d-d7e6-45d9-9513-37b3e4f9c361","trace_id":"a5f194f2-6a15-427c-8b55-c345bba64be1"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:42] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:42] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:bullhorn:ping","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"69ec5131-626f-4032-834c-aae55e30375e","trace_id":"bb9eeafb-c653-46c7-bd0d-6e189a7cf3e8"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:47] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:50:48] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:03] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:08] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"3d38e19f-9c1d-4716-abe3-f3fa52688866","trace_id":"a95d6ac0-77ea-4ba9-86ce-8173ff9ddeba"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:10] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"64383c80-935d-4836-a38c-237aaca2447e","trace_id":"ae2e500e-a92f-4be9-aa36-51e5d929a23d"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring start {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:11] local.NOTICE: Monitoring end {"correlation_id":"9469d008-ae9e-41df-b967-0fefb7c1e0d4","trace_id":"9a703161-5be2-4308-a059-36f4ef1b63bf"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"9a8c4795-c661-4ca2-b90c-0a0a149c56ea","trace_id":"a5350177-5015-48b2-a131-1e738f0fe25b"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] STARTING batch process {"host":"docker_lamp_1"} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: [EmailSchedule] FINISHED batch process {"host":"docker_lamp_1","processed":0} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:15] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:batch:process","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"61f0b96d-fd95-4d02-b49f-17d9a25168e2","trace_id":"83e93c01-ee7a-4b71-992e-c480f6194e8d"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:19] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"crm:sync-hubspot-objects","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"e2f07f3c-9553-449f-96ec-3a70467700d5","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","usage":22518264,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Fetching token {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SocialAccountService] Token retrieved {"socialAccountId":1499,"provider":"hubspot"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [EncryptedTokenManager] Generating access token. {"mode":"legacy"} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner matched as CRM Owner {"crm_provider":"hubspot","crm_owner":148,"team_id":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Syncing opportunities using strategy: lastModified {"team":2} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [Hubspot] Pagination completed {"team_id":2,"endpoint":"https://api.hubapi.com/crm/v3/objects/deals/search","total_requests":1,"total_records_fetched":0,"total_elapsed_seconds":0.55,"average_seconds_per_request":0.55} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [HubSpot] Synced opportunities {"team":2,"strategies":"lastModified","sync_count":0,"total":0,"last_synced_id":null,"duration_ms":567.03} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"abae74b8-bfa8-4383-9a7f-89f4bf2bdbb4","provider":"hubspot","status":"completed","duration_ms":646.09,"usage":22605856,"real_usage":62914560,"pid":13878} {"correlation_id":"f29b7acf-4d77-4d7e-ae5f-30d96ef0e1eb","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","usage":22583856,"real_usage":62914560,"pid":13878} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"33e34a7a-1c02-4f04-87ac-22c3a385e6e3","account":{"Jiminny\\Models\\SocialAccount":{"id":306,"sociable_id":109,"provider_user_id":"11348452","expires":1701077403,"refresh_token_expires":null,"provider":"hubspot","state":"full-refresh","auth_scope":null,"retry_after":null,"created_at":"2020-09-01 16:59:04","updated_at":"2023-11-27 09:30:03"}}} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":109,"team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":29} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2b115eb-93ce-4d1b-929c-173757df8fba","provider":"hubspot","status":"disconnected","duration_ms":45.56,"usage":22594584,"real_usage":62914560,"pid":13878,"reason":"Your HubSpot account has become disconnected. Please login to Jiminny to reconnect."} {"correlation_id":"0bf228bc-2868-4073-8c52-cfb0e00f9f52","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","usage":22552088,"real_usage":62914560,"pid":13878} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"2ac0447f-3c8c-4ce0-baeb-b63ddb76fa9b","account":null} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":130,"team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":42} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"b2d49a54-b645-4637-a7ae-a86cfce6e8e4","provider":"hubspot","status":"disconnected","duration_ms":14.26,"usage":22571760,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"5c523fbf-ea36-4550-9010-2344de5a0a50","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Starting sync {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","usage":22532440,"real_usage":62914560,"pid":13878} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.WARNING: [HubSpot] Account not connected for user {"userId":"71e3aac5-fb66-47c5-a236-2d051ae3e319","account":null} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] Integration owner is not connected, attempting team members {"crm_provider":"hubspot","crm_owner":256,"team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team members found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [CrmOwnerResolver] No team member found with active crm connection {"crm_provider":"hubspot","team_id":49} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:20] local.INFO: [SyncHubspotObjects] Sync finished {"team":"c6b9d6b0-b48d-4832-a68c-a57d60651888","provider":"hubspot","status":"disconnected","duration_ms":12.48,"usage":22568208,"real_usage":62914560,"pid":13878,"reason":"Social account for HubSpot cannot be found. Please login to Jiminny to connect."} {"correlation_id":"4beafbd9-44e1-4eec-ad79-e77e743efc1e","trace_id":"ef2acdf9-6f1b-4137-b651-109f51df894f"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Getting offset from database {"offset":"","jiminny_team_id":1} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal API] Fetching latest journal entry {"url":"https://api.hubapi.com/webhooks/v4/journal/latest"} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] No data {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.WARNING: [HubSpot Journal Polling] Maximum empty results reached, stopping {"empty_results":5,"max_empty_results":5} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Service ending {"runtime_seconds":56,"total_cycles":5,"files_downloaded":0,"empty_files":0,"other_portal_skipped":0,"total_events":0,"events_per_file":0,"avg_api_ms":190.1,"avg_download_ms":0.0,"avg_transform_ms":0.0,"avg_process_ms":0.0,"peak_memory_mb":99.72} {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:51:33] local.INFO: [HubSpot Journal Polling] Released polling lock {"correlation_id":"0082489b-e294-4b1f-bb8b-9d81683a0529","trace_id":"4e675f97-ff51-4eb4-94c8-496cdb55a7cb"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: [ScheduleBotCommand] Number of activities to be captured: 0 {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:06] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"meeting-bot:schedule-bot","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"67427165-e665-4ee9-adb3-e9770286e21e","trace_id":"5f16806b-d348-4fee-804d-6f79215a8ef6"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:09] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"dialers:monitor-activities","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"2c8df456-34f5-48ea-b9c4-186da7b597fe","trace_id":"944509a9-7860-47e6-9216-4b30fe60a8b2"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring start {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:11] local.NOTICE: Monitoring end {"correlation_id":"ce4d3801-ab27-41f4-8d6c-73edddd7940a","trace_id":"d77fc5dc-4358-4a5d-8917-0dae5ac5ec3a"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage before starting command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryPeakBeforeCommandInMb":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:13] local.INFO: Jiminny\Console\Commands\Command::run Memory usage for command {"command":"mailbox:skip-lists:refresh","memoryBeforeCommandInMb":60.0,"memoryAfterCommandInMB":60.0,"memoryPeakBeforeCommandInMb":99.723,"memoryPeakAfterCommandInMB":99.723} {"correlation_id":"989d3e66-f558-4872-aaa7-155beb408a5e","trace_id":"d6f3e59c-e20c-42be-8cc2-7695fca190ab"}
[2026-04-24 06:52:16] local.INFO: Jiminny\Console\C...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76145
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
1/1
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
1
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:...
|
PhpStorm
|
faVsco.js – custom.log
|
NULL
|
76146
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – custom.log
|
NULL
|
76147
|
|
Firefox• 0FileEditViewHistory→BookmarksProfilesToo Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76148
|
|
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJ DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76149
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76150
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76151
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
0 results
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76152
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Show Replace Field
Search History
\Log
New Line
Match Case
Words
Regex
Replace History
Replace
New Line
Preserve case
0 results
Previous Occurrence
Next Occurrence
Filter Search Results
Open in Window, Multiple Cursors
Click to highlight
Close
Sync Changes
Hide This Notification
Code changed:
Hide
1
2
1
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
try {
foreach ($this->resolveUsers($automatedReport) as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEvent.php
|
NULL
|
76153
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76154
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76155
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76156
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76159
|
|
[Line] [:column]:
22:33
Cancel
OK
Go to Line:Colum [Line] [:column]:
22:33
Cancel
OK
Go to Line:Column
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
Firefox
|
Go to Line:Column
|
NULL
|
76161
|
|
[Line] [:column]:
22:33
Cancel
OK
Go to Line:Colum [Line] [:column]:
22:33
Cancel
OK
Go to Line:Column
DMSActivityMorerireroxToolsHelpcalMistorbookmarksJiminny …..vXStarredi• jiminny-x-integrati..8 platform-inner-teamE) Channels# ai-chapter# ai-team# alerts# backend# c-learning-peoplei confusion-clinic# curiosity_labadeal-insichts-dev# engineering# frontend# general# infra-changes# jiminny-bg8 people-with-copilo...8 people-with-zoom-# platform-team# platform-tickets# product_launches# random# releases# sofia-office# support# thank-yous# the Deople of iimi...ProtllesWindow& platform-inner-...& 10MessagesChannel OverviewMoreYesterdayjinnylaop Aor 22nd Added by GitHubNikolay Ivanov 3:24 PMнякой нещо да е настроивал по githubactions. Почна да прави къмити вместо менбез да съм му разрешевал?https:/github.com/lminnv/app/pull/1200//changes/a68f42f210859f838a4fdced451f750627besoioИли нещо аз не разбирам?0AA0e 20 replies Last reply 18...Nikolay Yankov 3:50PMreplied to a uhread: някои нешо ла е насто..лол. ами предлагам маи ла му заораним лапускам към всички ла вилятNikolav Yankov 9.38 AMЩе се забавя за дейлито. Започнете без Мен.Aneliva Angelova 9:43 AMIДобро утро, няма да успея да вляза влейлито. Пествам ньлжовете.Message & platform-inner-team+ Aa I..•) New TabAl reports promotion pages by nik• JY-9712 | Nuges to expire after on8 Jiminnyu Userpilot Logged-activityJY-20157 add not enough activ XPipelines - jiminny/app+ New Tab©github.com/jimjiminny / app 8<> Code87 Pull requests 31( Agents |© Actions•• Wiki © Security and quality 32 ~ Insights 3 Settings@ On April 24 we'll start using GitHub Copilot interaction data for Al model training unless you opt out. Review this update and manage your preferences in your GitHub account settings.JY-20157 add not enough activities notification #12011 •$1 Open LakyLak wants to merge 2 commits into master from JY-20157-AJ-report-not-send-notification@) Conversation o• Commits 2|- Checks 21E Files changed 13A © All commits +Q Filter files...apo/Console/Commands/Reports/AutomatedReportsCommand.ohp@ -61,21 +61,29 @ public function handle(): intv = Console/Commands/Renorts|Snow = Carbon: : now();E AutomatedReportsCommand...v Jobs/AutomatedReportsE RequestGenerateAskJiminnyR...SendReportNotGeneratedMail...v @ Listeners/AutomatedReports/U….E TrackAutomatedReportGener...v # Mail/ReportsS1sMondav = Snow->1SMonday)S1sr1rstDayUtMonth = Snow->day === 1;ScurrentMonth = Snow->month.// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);$this->logger->info(self::LOG_PREFIX . ' Checking conditions', [+ ReportNotGenerated.ohp |"1SMonday' => S1SMonday,~ E Services/Kiosk/AutomatedRepo…..AskJiminnyReportActivityServ…'isFirstDay0fMonth' => SisFirstDay0fMonth,'currentMonth' => ScurrentMonth.E AutomatedReportsService.php'isQuarterlyMonth' => SisQuarterlyMonth,~E resources/views/emails/reportsreport-not-generated.blade.php/I Process dailv revortsl• F tests/UnitSthis->processReports(AutomatedReportsService::FREQUENCYDAILY):~ Jobs/AutomatedReportsE ReguestGenerateAsk JiminnvR....v = listeners/AutomatedRenorts/U.₴ TrackAutomatedReportGener..v E Services/Kiosk/AutomatedRepo…..E AskJiminnyReportActivityServ....AutomatedReportsServiceActi…./ Process weekly renorts on Mondavcif (SisMondav) {64 +67 +74 +86 +@40@ Daily - Platform - nowQ Type to search100% C4 8• Fri 24 Apr 9:46:13• Checks pending Code • (Preview) -+384 -52 9000C 0 I 13 viewedSubmit review+10 -2 mane [ Viewed0 ...Snow = Carhon:.nowdSisMondav = Snow->1SMonday)"Sisweekend = $now->isWeekend():SisFirstDay0fMonth = Snow->day === 1;ScurrentMonth = Snow->month.SisManualTrigger = $this->option('report-id') !== null;// Check if the current month is a quarterly month (January, April, July, October)$isQuarterlyMonth = in_array($currentMonth, [1, 4, 7, 10], true);Sthis->loager->info(self::L0G PREFIX . ' Checkina conditions'. [I"isMonday' => SisMonday,'isweekend' => $isWeekend,'isFirstDay0fMonth' => $isFirstDay0fMonth,'currentMonth' => ScurrentMonth.l'isQuarterlyMonth' => SisQuarterlyMonth,/ Process dailv renorts on weekdavs onlv (skio Saturdav/Sundav)...// Manual triggers via --report-id bypass the weekend skip.if (I Sisweekend || SisManualTriager) {Sthis->processReports(AutomatedReportsService::FREQUENCY_DAILY):} else {ISthis->logger->info(self::L0G PREFIX . ' Skipping daily reports on weekend'):/ Process weekly renorts on Mondavslif (SisMonday) {...
|
PhpStorm
|
Go to Line:Column
|
NULL
|
76162
|
|
[Line] [:column]:
22:33
Cancel
OK
Go to Line:Colum [Line] [:column]:
22:33
Cancel
OK
Go to Line:Column
Firefox• 0FileEditViewHistory→BookmarksProfilesToolsWindowHelpmeet.google.com/agt-teir-cwt?authuser=lukas.kovalik%40jiminny.com•Daily - Platform - now100% K78 • Fri 24 Apr 9:46:13|=Pop out this videoNikolay NikolovStefka StoyanovaGalya DimitrovaLukas Kovalik9:46 AM | Daily - Platform• 0:27...
|
Firefox
|
Go to Line:Column
|
NULL
|
76163
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76165
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$report->expects($this->once())->method('getId')->willReturn(303);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76166
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76167
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$report->method('getId')->willReturn(202);
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76168
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76170
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(101);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76171
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76172
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76173
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76176
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76177
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76179
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$report->expects($this->once())->method('getId')->willReturn(789);
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76180
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76181
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(456);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76182
|
|
Project: faVsco.js, menu
#12011 on JY-20157-AJ-rep Project: faVsco.js, menu
#12011 on JY-20157-AJ-report-not-send-notification, menu
Start Listening for PHP Debug Connections
TrackAutomatedReportGeneratedEventTest
Run 'TrackAutomatedReportGeneratedEventTest'
Debug 'TrackAutomatedReportGeneratedEventTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
9
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Tests\Unit\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Listeners\AutomatedReports\UserPilot\TrackAutomatedReportGeneratedEvent;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\User;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use PHPUnit\Framework\MockObject\MockObject;
use Tests\TestCase;
class TrackAutomatedReportGeneratedEventTest extends TestCase
{
private UserPilotClient&MockObject $userPilotClient;
private AutomatedReportsService&MockObject $automatedReportsService;
protected function setUp(): void
{
parent::setUp();
$this->userPilotClient = $this->createMock(UserPilotClient::class);
$this->automatedReportsService = $this->createMock(AutomatedReportsService::class);
}
private function makeListener(): TrackAutomatedReportGeneratedEvent
{
return new TrackAutomatedReportGeneratedEvent(
$this->userPilotClient,
$this->automatedReportsService,
);
}
private function makeEvent(AutomatedReport $report): AutomatedReportGenerated
{
return new AutomatedReportGenerated($report);
}
public function testHandleSkipsWhenUserPilotTokenIsNull(): void
{
config(['services.userpilot.token' => null]);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->never())->method('isAskJiminnyReport');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksCreatorForAskJiminnyReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn($creator);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$report->expects($this->once())->method('getId')->willReturn(123);
$this->automatedReportsService->expects($this->never())->method('getRecipientUserObjects');
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$creator,
'ask-jiminny-report-generated',
['report_type' => AutomatedReportsService::TYPE_ASK_JIMINNY, 'frequency' => 'weekly']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleSkipsTrackingWhenAskJiminnyCreatorIsNull(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(3))->method('isAskJiminnyReport')->willReturn(true);
$report->expects($this->once())->method('getCreator')->willReturn(null);
$report->expects($this->once())->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->expects($this->once())->method('getFrequency')->willReturn('weekly');
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleTracksAllRecipientsForExecReport(): void
{
config(['services.userpilot.token' => 'NX-token']);
$userOne = $this->createMock(User::class);
$userTwo = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$userOne, $userTwo]);
$this->userPilotClient->expects($this->exactly(2))
->method('track')
->willReturnCallback(function ($user, $eventName, $payload) use ($userOne, $userTwo) {
$this->assertTrue($user === $userOne || $user === $userTwo);
$this->assertSame('automated-report-generated', $eventName);
$this->assertSame(['report_type' => 'exec_summary', 'frequency' => 'monthly'], $payload);
return null;
});
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotTrackWhenExecReportHasNoRecipients(): void
{
config(['services.userpilot.token' => 'NX-token']);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('exec_summary');
$report->expects($this->once())->method('getFrequency')->willReturn('monthly');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->willReturn([]);
$this->userPilotClient->expects($this->never())->method('track');
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
public function testHandleDoesNotThrowOnGuzzleException(): void
{
config(['services.userpilot.token' => 'NX-token']);
$creator = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->method('isAskJiminnyReport')->willReturn(true);
$report->method('getCreator')->willReturn($creator);
$report->method('getType')->willReturn(AutomatedReportsService::TYPE_ASK_JIMINNY);
$report->method('getFrequency')->willReturn('daily');
$guzzleException = $this->createMock(GuzzleException::class);
$this->userPilotClient->expects($this->once())
->method('track')
->with($creator, 'ask-jiminny-report-generated', $this->anything())
->willThrowException($guzzleException);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
$this->addToAssertionCount(1);
}
public function testHandleTracksAutomatedReportWithSingleRecipient(): void
{
config(['services.userpilot.token' => 'NX-token']);
$user = $this->createMock(User::class);
$report = $this->createMock(AutomatedReport::class);
$report->expects($this->exactly(2))->method('isAskJiminnyReport')->willReturn(false);
$report->expects($this->once())->method('getType')->willReturn('team_performance');
$report->expects($this->once())->method('getFrequency')->willReturn('daily');
$this->automatedReportsService->expects($this->once())
->method('getRecipientUserObjects')
->with($report)
->willReturn([$user]);
$this->userPilotClient->expects($this->once())
->method('track')
->with(
$user,
'automated-report-generated',
['report_type' => 'team_performance', 'frequency' => 'daily']
);
$listener = $this->makeListener();
$listener->handle($this->makeEvent($report));
}
}
Code changed:
Hide
Sync Changes
Hide This Notification
15
Previous Highlighted Error
Next Highlighted Error
<?php
declare(strict_types=1);
namespace Jiminny\Listeners\AutomatedReports\UserPilot;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Jiminny\Component\Queue\Constants;
use Jiminny\Events\AutomatedReports\AutomatedReportGenerated;
use Jiminny\Models\AutomatedReport;
use Jiminny\Models\Contracts\UserContract;
use Jiminny\Services\Kiosk\AutomatedReports\AutomatedReportsService;
use Jiminny\Services\UserPilot\UserPilotClient;
use Illuminate\Support\Facades\Log;
class TrackAutomatedReportGeneratedEvent implements ShouldQueue
{
use InteractsWithQueue;
private const string EVENT_NAME_AUTOMATED_REPORT = 'automated-report-generated';
private const string EVENT_NAME_ASK_JIMINNY_REPORT = 'ask-jiminny-report-generated';
public string $queue = Constants::QUEUE_DELAYABLE;
public function __construct(
private readonly UserPilotClient $userPilotClient,
private readonly AutomatedReportsService $automatedReportsService,
) {
}
public function handle(AutomatedReportGenerated $event): void
{
if (config('services.userpilot.token') === null) {
return;
}
$automatedReport = $event->automatedReport;
$payload = $this->buildPayload($automatedReport);
$eventName = $this->resolveEventName($automatedReport);
$users = $this->resolveUsers($automatedReport);
if (empty($users)) {
Log::warning('[UserPilot] No recipients found for automated report', [
'report_id' => $automatedReport->getId(),
'is_ask_jiminny' => $automatedReport->isAskJiminnyReport(),
]);
return;
}
Log::info('[UserPilot] Sending automated report event', [
'report_id' => $automatedReport->getId(),
'event_name' => $eventName,
'recipient_count' => count($users),
]);
try {
foreach ($users as $user) {
$this->userPilotClient->track($user, $eventName, $payload);
}
} catch (GuzzleException $e) {
Log::error('[UserPilot] Failed to send automated report event', [
'report_id' => $automatedReport->getId(),
'error' => $e->getMessage(),
]);
$this->release(3600);
}
}
/**
* @return array<UserContract>
*/
private function resolveUsers(AutomatedReport $automatedReport): array
{
if ($automatedReport->isAskJiminnyReport()) {
$creator = $automatedReport->getCreator();
return $creator !== null ? [$creator] : [];
}
return $this->automatedReportsService->getRecipientUserObjects($automatedReport);
}
private function buildPayload(AutomatedReport $automatedReport): array
{
return [
'report_type' => $automatedReport->getType(),
'frequency' => $automatedReport->getFrequency(),
];
}
private function resolveEventName(AutomatedReport $automatedReport): string
{
if ($automatedReport->isAskJiminnyReport()) {
return self::EVENT_NAME_ASK_JIMINNY_REPORT;
}
return self::EVENT_NAME_AUTOMATED_REPORT;
}
}
Project
Project
New File or Directory…
Expand Selected
Collapse All
Options
Hide...
|
PhpStorm
|
faVsco.js – TrackAutomatedReportGeneratedEventTest faVsco.js – TrackAutomatedReportGeneratedEventTest.php...
|
NULL
|
76184
|