Skip to content

devenairevo/task-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task

Develop a task management mechanism accessible via HTTP. The system should provide the following capabilities:

  • Users can create new tasks via an HTTP endpoint.
  • Newly created tasks should be added to a queue for asynchronous processing.
  • Users can list all tasks and check the status of individual tasks using their task ID.
  • The system must include both a task queue and a task management component to handle task execution and status tracking.

Run the service with:

make run

Usage (Requests) - (via Postman for ex.)

POST - http://localhost:2025/task - making request for mocking data creation, no need post params
GET - http://localhost:2025/task/create  - get the all user's tasks list with statuses
GET - http://localhost:2025/tasks/3 - get specific task by taskID
PUT - http://localhost:2025/tasks/3 - Update the task (changes the status to Processing)

P.S.: In addition, usage of maps probably better solution than slices for tasks storage, currently implemented slices

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published