MCPcopy
hub / github.com/treeverse/dvc / QueueEntry

Class QueueEntry

dvc/repo/experiments/queue/base.py:41–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40@dataclass(frozen=True)
41class QueueEntry: # noqa: PLW1641
42 dvc_root: str
43 scm_root: str
44 stash_ref: str
45 stash_rev: str
46 baseline_rev: str
47 branch: Optional[str]
48 name: Optional[str]
49 head_rev: Optional[str] = None
50
51 def __eq__(self, other: object):
52 return (
53 isinstance(other, QueueEntry)
54 and self.dvc_root == other.dvc_root
55 and self.scm_root == other.scm_root
56 and self.stash_ref == other.stash_ref
57 and self.stash_rev == other.stash_rev
58 )
59
60 def asdict(self) -> dict[str, Any]:
61 return asdict(self)
62
63 @classmethod
64 def from_dict(cls, d: dict[str, Any]) -> "QueueEntry":
65 return cls(**d)
66
67
68class QueueGetResult(NamedTuple):

Callers 6

test_apply_failedFunction · 0.90
_stash_expMethod · 0.85
getMethod · 0.85
iter_queuedMethod · 0.85
getMethod · 0.85
iter_activeMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_apply_failedFunction · 0.72