ltq 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ltq-0.3.0 → ltq-0.3.1}/PKG-INFO +1 -1
- {ltq-0.3.0 → ltq-0.3.1}/pyproject.toml +2 -2
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/worker.py +1 -4
- {ltq-0.3.0 → ltq-0.3.1}/README.md +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/__init__.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/app.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/cli.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/errors.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/logger.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/message.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/middleware.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/q.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/scheduler.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/task.py +0 -0
- {ltq-0.3.0 → ltq-0.3.1}/src/ltq/utils.py +0 -0
{ltq-0.3.0 → ltq-0.3.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ltq"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.1"
|
|
4
4
|
description = "Add your description here"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Tom Clesius", email = "tomclesius@gmail.com" }]
|
|
@@ -19,7 +19,7 @@ requires = ["uv_build>=0.9.26,<0.10.0"]
|
|
|
19
19
|
build-backend = "uv_build"
|
|
20
20
|
|
|
21
21
|
[tool.bumpversion]
|
|
22
|
-
current_version = "0.3.
|
|
22
|
+
current_version = "0.3.1"
|
|
23
23
|
commit = true
|
|
24
24
|
tag = true
|
|
25
25
|
message = "v{new_version}"
|
|
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
4
|
from functools import partial
|
|
5
|
-
from pathlib import Path
|
|
6
5
|
from typing import TYPE_CHECKING, Any, Awaitable, Callable, ParamSpec, TypeVar
|
|
7
6
|
|
|
8
7
|
import redis.asyncio as redis
|
|
@@ -38,15 +37,13 @@ class Worker:
|
|
|
38
37
|
self.concurrency: int = concurrency
|
|
39
38
|
self.poll_sleep: float = poll_sleep
|
|
40
39
|
|
|
41
|
-
|
|
42
40
|
def task(
|
|
43
41
|
self,
|
|
44
42
|
queue_name: str | None = None,
|
|
45
43
|
ttl: int | None = None,
|
|
46
44
|
) -> Callable[[Callable[P, Awaitable[R]]], Task[P, R]]:
|
|
47
45
|
def decorator(fn: Callable[P, Awaitable[R]]) -> Task[P, R]:
|
|
48
|
-
|
|
49
|
-
task_name = f"{filename}:{fn.__qualname__}"
|
|
46
|
+
task_name = f"{fn.__module__}:{fn.__qualname__}"
|
|
50
47
|
queue = Queue(self.client, queue_name or task_name)
|
|
51
48
|
task = Task(
|
|
52
49
|
name=task_name,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|