-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Consensus simple merging #8953
base: develop
Are you sure you want to change the base?
Consensus simple merging #8953
Conversation
cvat-ui/src/components/consensus-management-page/consensus-management-page.tsx
Outdated
Show resolved
Hide resolved
supervisord/worker.consensus.conf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need another worker for this? Can't an existing worker, like the quality report worker, handle this?
schema: | ||
type: string | ||
description: | | ||
The consensus merge request id. Can be specified to check operation status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be using the request API for status checking.
|
||
@property | ||
def organization_id(self): | ||
return getattr(self.task.organization, "id", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return getattr(self.task.organization, "id", None) | |
return self.task.organization_id |
@@ -453,7 +453,7 @@ def get_tmp_dirname(self) -> str: | |||
|
|||
|
|||
@transaction.atomic(savepoint=False) | |||
def clear_annotations_in_jobs(job_ids): | |||
def clear_annotations_in_jobs(job_ids: Iterable[int] | Iterator[int]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iterator
is a subclass of Iterable
, so this is equivalent to Iterable[int]
.
@@ -14,7 +14,7 @@ | |||
from collections.abc import Collection, Sequence | |||
from enum import Enum | |||
from functools import cached_property | |||
from typing import Any, ClassVar, Optional | |||
from typing import Any, ClassVar, Iterable, Iterator, Optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use collections.abc
.
|
Motivation and context
Depends on #8939, #9026
A part of #8434
consensus
RQ queue and workerLimitations:
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.