Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Endpoint to get the status of a task [3h] #255

Open
milafrerichs opened this issue Apr 27, 2021 · 0 comments
Open

Create Endpoint to get the status of a task [3h] #255

milafrerichs opened this issue Apr 27, 2021 · 0 comments

Comments

@milafrerichs
Copy link
Contributor

We want to get the status of a async task via django_q

For #238 we need a way for the user that uploads a file via API to get the status of the task. especially when the task finished and if there was an error.

This endpoint needs to be authenticated as well (look at the PR #247 ) do not recreate that logic.

The endpoint should probably be api/v1/tasks/:task_id

The endpoint should return a standard response:

{
  "id": ":task_id",
  "status": "running|error|success",
}

we might want to extent that, but that should work for now.

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

No branches or pull requests

1 participant