Introduce Cancel Export Endpoint to Core API

๐Ÿ” Problem Statement
Currently, once an export process has been initiated, there is no way to cancel it mid-process. This creates operational inefficiencies when users start exports by mistake, change requirements, or realize the data set is too large or unnecessary. Without cancellation, system resources are wasted and users must wait for irrelevant exports to complete.

๐Ÿ’ก User Story
As a developer,
I want the ability to cancel an in-progress export by providing its UUID,
so that I can stop unnecessary processing, free up resources, and avoid waiting for irrelevant or mistakenly initiated exports to complete.

๐ŸŽฏ Definition of Done (DoD)

  • A new โ€œCancel Exportโ€ Core API endpoint exists, requiring UUID as a parameter.

  • Logic ensures:

    • The batch related to the UUID is found and cancelled.

    • The related export is located.

    • All associated export_chunks are marked as finished.

    • The export itself is marked as finished and soft-deleted.

  • Endpoint is covered with unit and integration tests.

  • Proper error handling and response messages are implemented (e.g., invalid UUID, already finished export).

  • API documentation is updated to include usage details and examples.

Please authenticate to join the conversation.

Upvoters
Status

Backlog

Board
๐Ÿ’ก

Pelcro Product

Date

6 months ago

Author

Rana Haleem

Subscribe to post

Get notified by email when there are changes.