
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Aiotaskqueue is a type-safe and fast distributed queue alternative to celery, rq and arq.
import asyncio
from redis.asyncio import Redis
from aiotaskqueue import Configuration, Publisher, TaskRouter
from aiotaskqueue.broker.redis import RedisBroker, RedisBrokerConfig
from aiotaskqueue.serialization.msgspec import MsgSpecSerializer
from aiotaskqueue.serialization.pydantic import PydanticSerializer
router = TaskRouter()
@router.task(name="task-name")
async def task(a: int, b: str) -> None:
print(a, b)
async def main() -> None:
configuration = Configuration(
serialization_backends=[PydanticSerializer()],
default_serialization_backend=MsgSpecSerializer(),
)
redis = Redis(host="127.0.0.1")
broker = RedisBroker(
redis=redis,
consumer_name="aiotaskqueue",
broker_config=RedisBrokerConfig(xread_count=100),
)
publisher = Publisher(broker=broker, config=configuration)
async with redis, broker:
await publisher.enqueue(task(a=42, b="string"))
if __name__ == "__main__":
asyncio.run(main())
FAQs
Asynchronous task queue framework
We found that aiotaskqueue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.