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

Wrong task status in task_api #7900

Closed
2 tasks done
cile98 opened this issue May 16, 2024 · 7 comments · Fixed by #7901
Closed
2 tasks done

Wrong task status in task_api #7900

cile98 opened this issue May 16, 2024 · 7 comments · Fixed by #7901
Labels
bug Something isn't working

Comments

@cile98
Copy link

cile98 commented May 16, 2024

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

  1. Create a task in the project
  2. Change stage to acceptance
  3. Change status to Completed
  4. List tasks using task_api and check the status
  5. Status won't always be 'completed' (in my case it was 'validation')

Expected Behavior

The task status is 'completed'. If you use the 'Finish the job' button from the dropdown menu then the status in the API is actually reflected properly.

Possible Solution

No response

Context

I'm trying to get a list of tasks that are completed.

Environment

No response

@cile98 cile98 added the bug Something isn't working label May 16, 2024
@bsekachev
Copy link
Member

Hello,

Change status to Completed

What do you mean here? Status is outdated and read-only property for jobs. You need to use State.

Please, try to reproduce on app.cvat.ai and send us a task id.

@cile98
Copy link
Author

cile98 commented May 16, 2024

Hello,

Change status to Completed

What do you mean here? Status is outdated and read-only property for jobs. You need to use State.

Please, try to reproduce on app.cvat.ai and send us a task id.

Sorry, I did mean State. Here's the id: 676168

@cile98
Copy link
Author

cile98 commented May 16, 2024

Here is the screenshot from app.cvat.ai
image

@cile98
Copy link
Author

cile98 commented May 16, 2024

And here's the response from API (deleted irrelevant fields):

({'assignee': None,
 'bug_tracker': '',
 'created_date': datetime.datetime(2024, 5, 16, 10, 11, 11, 471423, tzinfo=tzutc()),
 'data_chunk_size': 24,
 'data_compressed_chunk_type': 'imageset',
 'data_original_chunk_type': 'imageset',
 'dimension': '2d',
 'guide_id': None,
 'id': 676168,
 'image_quality': 70,
 'jobs': {'completed': 1,
          'count': 1,
          'url': 'https://app.cvat.ai/api/jobs?task_id=676168',
          'validation': 0},
 'labels': {'url': 'https://app.cvat.ai/api/labels?task_id=676168'},
 'mode': 'annotation',
 'name': 'test cvat',
 'overlap': 0,
 'segment_size': 1,
 'size': 1,
 'status': 'validation',
 'subset': '',
 'updated_date': datetime.datetime(2024, 5, 16, 10, 11, 20, 994846, tzinfo=tzutc()),
 'url': 'https://app.cvat.ai/api/tasks/676168'}

@bsekachev
Copy link
Member

Okay, thanks, we will take a look

@cile98
Copy link
Author

cile98 commented May 21, 2024

@bsekachev Thanks for the quick fix! Saw that it's merged already, when will these changes take effect?

@bsekachev
Copy link
Member

In couple of days the new release will be deployed on app.cvat.ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants