Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
342 changes: 0 additions & 342 deletions examples/monitor/monitor.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "omniq"
version = "2.0.0"
version = "3.0.0"
authors = [
{ name="Not Empty Foundation", email="dev@not-empty.org" },
]
Expand Down
9 changes: 9 additions & 0 deletions src/omniq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
from .client import OmniqClient
from .consumer import consume
from .monitor import QueueMonitor
from .types import JobCtx, PayloadT

__all__ = [
"OmniqClient",
"QueueMonitor",
"consume",
"JobCtx",
"PayloadT",
]
6 changes: 3 additions & 3 deletions src/omniq/_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .clock import now_ms
from .ids import new_ulid
from .types import ReservePaused, ReserveJob, ReserveResult, AckFailResult, BatchRemoveResult, BatchRetryFailedResult
from .types import ReservePaused, ReserveJob, ReserveResult, AckFailResult, BatchRemoveResult, BatchRetryFailedResult, BatchResultItem
from .transport import RedisLike
from .scripts import OmniqScripts
from .helper import queue_base, queue_anchor, childs_anchor
Expand Down Expand Up @@ -373,7 +373,7 @@ def retry_failed_batch(
i += 3
else:
i += 2
out.append((job_id, status, reason))
out.append(BatchResultItem(job_id=job_id, status=status, reason=reason))
return out

def remove_job(self, *, queue: str, job_id: str, lane: str) -> str:
Expand Down Expand Up @@ -442,7 +442,7 @@ def remove_jobs_batch(
i += 3
else:
i += 2
out.append((job_id, status, reason))
out.append(BatchResultItem(job_id=job_id, status=status, reason=reason))
return out

def childs_init(self, *, key: str, expected: int) -> None:
Expand Down
Loading
Loading