mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-17
This commit fixes an exception detected by OneUptime. Exception Type: Error Exception ID: e6f39d81-94f7-4c7d-a5f1-822e9c28b9ae Automatically generated by OneUptime AI Agent.
This commit is contained in:
@@ -3,6 +3,7 @@ import Queue, { QueueName } from "Common/Server/Infrastructure/Queue";
|
||||
import { JSONObject } from "Common/Types/JSON";
|
||||
import OneUptimeDate from "Common/Types/Date";
|
||||
import logger from "Common/Server/Utils/Logger";
|
||||
import Text from "Common/Types/Text";
|
||||
|
||||
export enum TelemetryType {
|
||||
Logs = "logs",
|
||||
@@ -51,7 +52,7 @@ export default class TelemetryQueueService {
|
||||
ingestionTimestamp: OneUptimeDate.getCurrentDate(),
|
||||
};
|
||||
|
||||
const jobId: string = `${type}-${req.projectId?.toString()}-${OneUptimeDate.getCurrentDateAsUnixNano()}`;
|
||||
const jobId: string = `${type}-${req.projectId?.toString()}-${OneUptimeDate.getCurrentDateAsUnixNano()}-${Text.generateRandomNumber(6)}`;
|
||||
|
||||
await Queue.addJob(
|
||||
QueueName.Telemetry,
|
||||
|
||||
Reference in New Issue
Block a user