[Feature]: Task Queue #7

Open
opened 2025-12-31 14:23:34 -03:00 by aleidk · 1 comment
Owner

Type of Feature

New Feature

Description

As a user I want to enqueue task for it's execution, handling possible failures.__

Completion criteria

  • Create a generic (trait) type called "payload" to store the task data in json format
    • Needs to be serializable by serde to be able to move the data remotely and store it in databases
    • Needs to implement the "From" trait to convert between different payloads
  • CRUD
    • Add Task
    • Load Tasks -> upsert tasks from an array of data
    • List Tasks
    • Cancel Task
    • Bulk Cancel Tasks
    • Retry Task
    • Bulk Retry Task
  • Workers
    • Register callback (dummy for now)
    • Execute queue (sync for now)
    • Add logging through tower services
    • Accept run options
      • Pre/Post Hooks callback
      • Rate Limit
      • Retry Policy

Additional Information

No response

### Type of Feature ✨ New Feature ### Description As a user I want to enqueue task for it's execution, handling possible failures.__ ### Completion criteria - [x] Create a generic (trait) type called _"payload"_ to store the task data in json format - Needs to be serializable by serde to be able to move the data remotely and store it in databases - Needs to implement the _"From"_ trait to convert between different payloads - [ ] CRUD - [ ] Add Task - [ ] Load Tasks -> upsert tasks from an array of data - [ ] List Tasks - [ ] Cancel Task - [ ] Bulk Cancel Tasks - [ ] Retry Task - [ ] Bulk Retry Task - [ ] Workers - [ ] Register callback (dummy for now) - [ ] Execute queue (sync for now) - [ ] Add logging through tower services - [ ] Accept run options - Pre/Post Hooks callback - Rate Limit - Retry Policy ### Additional Information _No response_
aleidk added this to the v0.0.1 milestone 2025-12-31 14:23:34 -03:00
aleidk added the
Priority
High
Severity
Low
Type
Feature
Status
Pending
labels 2025-12-31 14:23:34 -03:00
ame was assigned by aleidk 2025-12-31 14:23:34 -03:00
aleidk added
Status
Accepted
and removed
Status
Pending
labels 2025-12-31 14:46:17 -03:00
aleidk changed reference from development to refactor/new-core-lib 2026-01-02 17:45:31 -03:00
aleidk started working 2026-01-02 17:45:33 -03:00
aleidk stopped working 2026-01-02 22:50:48 -03:00
5 hours 5 minutes
Author
Owner

Create a mapping of the TaskSinkError and the crate custom error enum or use anyhow

Create a mapping of the [TaskSinkError](https://docs.rs/apalis-core/1.0.0-rc.1/apalis_core/backend/enum.TaskSinkError.html) and the crate custom error enum or use anyhow
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 5 hours 5 minutes
aleidk
5 hours 5 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: alecodes/synchronizator#7
No description provided.