Skip to content

[Backend][Tech-debt] Background job handlers are no-op stubs that mark work complete without doing it #463

Description

@Penielka

Overview

In backend/src/index.ts the job queue registers handlers for email, notification, report_generation, data_export, credential_minting, analytics_aggregation, content_processing and general — every one of them only logs the job and sets job.progress = 100. Jobs enqueued by real features (e.g. credential minting, data export) are therefore reported as successfully completed while doing nothing.

Evidence

  • backend/src/index.tsjobQueue.registerHandler(...) block

Acceptance Criteria

  • Implement or remove each handler; never mark a job complete without performing its work
  • Return a terminal failure state for unsupported job types
  • Add tests asserting handlers actually process or explicitly fail

Files to Modify

  • backend/src/index.ts

Priority: Medium

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend API issuesbugSomething isn't workingtech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions