Skip to content

fix: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-1767983969088000000...#2217

Open
oneuptime-dev[bot] wants to merge 1 commit intomasterfrom
oneuptime-fix-exception-5f43cb12
Open

fix: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-1767983969088000000...#2217
oneuptime-dev[bot] wants to merge 1 commit intomasterfrom
oneuptime-fix-exception-5f43cb12

Conversation

@oneuptime-dev
Copy link

@oneuptime-dev oneuptime-dev bot commented Jan 9, 2026

Exception Fix

This pull request was automatically generated by OneUptime AI Agent to fix an exception.

Exception Details

Service: telemetry
Type: Error
Message: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-1767983969088000000 could not be removed because it is locked by another worker

Stack Trace

Error: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-1767983969088000000 could not be removed because it is locked by another worker
    at Job.remove (/usr/src/Common/node_modules/bullmq/src/classes/job.ts:677:13)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Function.addJob (/usr/src/Common/Server/Infrastructure/Queue.ts:224:7)
    at async Function.addTelemetryIngestJob (/usr/src/app/Services/Queue/TelemetryQueueService.ts:56:7)
    at async Function.ingestTraces (/usr/src/app/Services/OtelTracesIngestService.ts:122:7)

Summary of Changes

  • Make telemetry ingest jobIds truly unique by adding a small random suffix, preventing collisions so Queue.addJob never tries to remove an active/locked job.
    Code Change
  • Updated Telemetry/Services/Queue/TelemetryQueueService.ts:54 to append Text.generateRandomNumber(6) to the jobId.
    Notes
  • I attempted npm run compile in Telemetry/, but TypeScript failed because @types/node / @types/jest aren’t present in Telemetry/node_modules in this environment (dependency install issue, not caused by this patch).

This PR was automatically generated by OneUptime AI Agent

This commit fixes an exception detected by OneUptime.

Exception Type: Error
Exception ID: e6f39d81-94f7-4c7d-a5f1-822e9c28b9ae

Automatically generated by OneUptime AI Agent.
@simlarsen
Copy link
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant