Celery Beat: Where Should the Schedule Live?
Compare Celery Beat scheduler backends—file, SQL, and Redis/RedBeat—by where the active schedule lives, how updates propagate, and what failure modes each introduces.
Loading…
Topic
265 posts about Python. Every summary links to the original.
See the idea
Compare Celery Beat scheduler backends—file, SQL, and Redis/RedBeat—by where the active schedule lives, how updates propagate, and what failure modes each introduces.
A practical asyncio workflow for moving independent work through typed events, queues, concurrent tasks, and awaited API calls. Learn where validation and fallback belong.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Version 3.0 of the Sentry Python SDK improves trace-connectedness for AWS Lambda functions by linking synchronous Invoke API calls to the initiating client trace. Before 3.0, traces were only connected for HTTP-triggered invocations where trace headers arrived in the event. The SDK picks up trace metadata from the custom client context passed to a RequestResponse Lambda invocation via boto3, with Boto3Integration handling this automatically; for non-Python callers, sentry-trace and baggage can be manually added under the custom field in the client context. Trace propagation also works across SQS queues and SNS topics by passing sentry-trace and baggage as message attributes, which links the producer’s trace to the consumer’s trace. Additionally, Amazon Bedrock Converse and ConverseStream calls are traced with rich GenAI spans that include model inputs, model outputs, and token usage among other information.
AI coding agents can write code faster than developers can review it, creating a risk that the codebase moves faster than the team’s understanding. The post argues that the solution is not to stop using agents but to use test-driven development (TDD) to define correct behavior upfront, narrow the agent’s scope, and provide automated checks. A live stream on December 2, 2026, will demonstrate this workflow using PyCharm’s pytest support, JetBrains Air, and PyCharm’s inspections, test runner, and debugger. The session will cover writing a test first, handing the task to an agent, reviewing the implementation, and diagnosing issues. The target audience is Python developers and data scientists who want to use agents without losing confidence in their code.
Phone audio differs from local microphone audio, requiring a translation layer between Twilio and Gemini Live. This tutorial builds a Python appointment concierge that connects Twilio Programmable Voice to the Gemini Live API through a custom Twilio Agent Connect provider. The provider converts 8 kHz μ-law phone audio to 16 kHz PCM for Gemini and 24 kHz Gemini output back to 8 kHz μ-law for Twilio. The agent handles interruptions, calls Python tools for appointment availability and booking, streams a live transcript, and supports outbound calls. The project uses twilio-agent-connect[server] 2.4, the google-genai Python SDK, FastAPI, and the gemini-3.8-live model as of October 2026.
Salesforce’s retirement of its SOAP API login mechanism deliberately triggered more than 600 test failures, creating a blast radius where genuine regressions could hide among expected failures. The existing manual triage workflow could process only 50 failures at a time, often created duplicate work items, and sometimes misrouted failures, requiring two or three days of effort by multiple engineers. The team built AI-Assisted Test Failure Buddy as a Python and FastMCP process exposing eight tools to Claude Code or Cursor, connecting to Salesforce’s internal GUS workflow system. Deterministic code handles API operations and regex parsing, while AI interprets novel stack traces and resolves ambiguous ownership across teams. One engineer processed 600 failures in approximately 90 minutes using the tool, which has since been adopted by three or four teams.
AWS and MongoDB launched the open-source strands-mongodb Python package, integrating MongoDB as the data platform for Strands AI agents. The integration provides session persistence so agents resume conversations after a restart or on a different instance, and long-term memory for facts that carry across conversations. Atlas Automated Embedding generates vector embeddings from plain text without an external embedding pipeline, enabling vector, text, or hybrid search. The memory store enforces tenant isolation through scoped stamps and deduplicates repeated extractions using a content hash. OpenTelemetry tracing is included, and the package requires Python 3.10 or later and strands-agents 1.54.0 or later.
NVIDIA cuDLA provides a runtime API for managing execution on the Deep Learning Accelerator (DLA) hardware on Jetson AGX Orin, offloading inference from the GPU to improve power efficiency. The cuda.bindings.cudla module, introduced in cuda-bindings 13.3.0, exposes cuDLA APIs directly to Python, allowing developers to integrate DLA execution without writing C++ code. The post walks through a nine-step inference lifecycle: creating a DLA device in hybrid mode, loading a compiled loadable, introspecting tensor descriptors, allocating and registering memory, submitting inference on a CUDA stream, synchronizing, copying output, and cleaning up. The workflow is model-agnostic because tensor sizes are read from descriptors rather than hardcoded. The same cuDLA API also applies to NVIDIA RTX Spark, extending DLA inference to Windows AI developer laptops.
PyCharm 2026.3 ships with 303 fixes and improvements alongside major features like JetBrains Air and workspaces. Type inference now handles functools.partial, generic classes, bounded type variables, and collections with fewer false positives. The debugger gains Set Value and Jump to Cursor in debugpy mode, plus variable sorting by type and plot display. Testing tools offer completion for pytest-mock mocker fixtures and Mock(spec=…) classes, and support for Zuban as a mypy-compatible type checker. Environment handling is more reliable for conda and uv, and startup is faster by reducing matplotlib overhead by about 100 milliseconds.
The 2026 State of Developer Ecosystem report, based on 28,945 developers across 198 countries, marks its tenth edition. AI agents are now standard, with over half of employed developers using them in more than 60% of work tasks. Senior developers are harder to impress, as 60% of junior developers find AI solutions better than their own versus 47% of veterans. Python has overtaken JavaScript as the most widely used language at 65%, while TypeScript adoption has more than tripled since 2017. PostgreSQL gained nine percentage points to reach 59%, and 75% of developers would choose the same career again despite a tough job market.
PyCharm 2026.3 introduces JetBrains Air, a new layer for agentic development that lets you run, track, and review multi-agent workflows inside your IDE with code intelligence and review tools. Air supports major coding agents such as Claude, Codex, and Copilot, automatically detects those installed on your machine, and includes free Junie Lite requiring only a JetBrains Account. Workspace support gives each subproject its own terminal and Python console running in its own environment, and subprojects can be added or converted via uv, Hatch, or Poetry. The release adds Python 3.15 lazy imports that defer module loading to cut startup time, FastAPI dependency graphs flagging circular dependencies, and deeper Pydantic field constraint validation. The Python interpreter widget is redesigned to centralize environment management across tools such as uv, Poetry, Hatch, and conda, showing each tool’s managed environments.
JetBrains Academy’s October digest announces AI.js Day 2026, a free online broadcast on November 13 where frontend developers can ask experts from Figma, Chrome, and Storybook about AI tensions. The digest highlights JetBrains Air, which lets developers delegate boilerplate code to an agent while retaining review control with diffs, tests, and the debugger. A free Junie Lite configuration is available until December 31, 2026, requiring only a JetBrains Account. New learning resources include a Coursera specialization, Python Development Essentials for Science and Data, covering Python from Scratch, NumPy Essentials, and pandas Essentials. A free DeepLearning.AI course on AI coding workflows shows how to move from Claude Code to fully local setups, and three Full Stack Python Architect courses pair Django, FastAPI, or Flask with React and vibe coding.
The 2026 Python Typing Survey received 1,794 responses examining Python typing use and tools. Missing library type information remained the most common difficulty at 65.1%. Frequent type hint use held steady at 85.5%, but checker selection shifted sharply, with 49.9% using multiple checkers and speed as top reason at 56.5%, while newer checkers like Pyrefly gained ground. AI tools increasingly intersected with typing: 42.5% used AI to write type hints, and 24.4% reported an AI tool ran their checker, of whom 61.6% also used AI to fix errors. Sources for typing help shifted, with Stack Overflow dropping to 22.9% and LLM chat rising to 41.7%, while checker-specific documentation rose to 60.5%.
GPU applications face growing datasets that demand efficient data movement to keep accelerators supplied. NVIDIA GPUDirect Storage (GDS) enables a direct path between storage and GPU memory through the nvidia-fs kernel module, bypassing CPU staging. KvikIO provides Python interfaces over cuFile with defaults of a 16 KiB GDS threshold and 4 MiB task size, and its compat_mode setting determines whether cuFile is invoked. This tutorial demonstrates reading a 1 GiB file into a CuPy buffer on an H100 system with NVMe and verifying the path by setting CUFILE_STATS_LEVEL=3 and inspecting gds_stats output. With four cuFile worker threads and max_request_parallelism set to four, the default task size divides the read into 256 cuFile requests, while a 1 GiB task size results in four 256 MiB pieces processed through bounce buffers with slab caching.
The post compares Python and Go across language design, performance, tooling, and developer profiles, drawing on quantitative data from the JetBrains Developer Ecosystem 2026 survey of 28,945 respondents and qualitative interviews with developers who migrated production workloads from Python to Go. Python favors expressive code and rapid iteration, while Go emphasizes explicit, standardized code that is easy to maintain across teams. Go excels in raw performance and concurrency and is widely used in cloud infrastructure, whereas Python remains stronger for machine learning, data science, and scientific computing. Survey data shows that Go developers are typically more infrastructure-focused and senior, and that Go is rarely a first language, while Python is beginner-friendly with 10% of its developers coding for less than a year. Most teams use both languages, with Go for services and infrastructure and Python for AI and data workloads, and moving to Go rarely means abandoning Python.
Google tested Gemini 4 Argon on google/adk-python, a 205,000-line Python framework with 800 source files and 17,000 unit tests. The model ran unattended for 11 hours, guided by a /goal prompt and .agents/skills rulefiles that encoded maintainer conventions. Argon first wrote a benchmark script, spent 70 minutes measuring before editing code, and proposed six optimizations across 32 files; two shipped after human code review. The shipped changes cut in-memory session prep time by about 40% in long sessions and sped up cold package imports by 21% by filtering events before copying and using lazy module accessors. The other four proposals were rejected for relying on fragile state, private library internals, or synthetic-only gains, illustrating a division of labor where the agent explores and the maintainer subtracts.
HL7v2 is the dominant healthcare messaging standard but is difficult to parse due to its nested, delimiter-encoded structure. Existing workarounds like converting to FHIR or using third-party engines add cost and latency. Funke, the successor to the open-source Smolder library, is a new open-source Python and PySpark library under the Databricks License that parses HL7v2 messages directly into native Spark types, preserving the full hierarchy losslessly. It deploys as a Databricks Asset Bundle with a Declarative Pipeline that uses Auto Loader to ingest raw messages into a Unity Catalog volume, then parses them into structured silver tables following the medallion pattern. The library supports all HL7 message types and versions, includes accessor helpers for extracting fields by segment and component, and ships with a demo using synthetic ADT events to illustrate end-to-end ingestion and gold table creation, including a live census and bed utilization dashboard.
The Prime-Sentinel Command (PSC) architecture is an object-oriented master-agent pattern for coordinating edge diagnostic nodes via a centralized orchestrator. Many diagnostic setups tightly couple data polling with central processing, creating bottlenecks and complicating retry logic. PSC isolates agent-level diagnostics into self-contained SentinelProgram instances that sample CPU load, memory utilization, and network state flags, returning structured telemetry payloads. The PrimeProgram controller manages lifecycle dispatch, dynamic registration, batch execution passes, and reporting thresholds, using synchronous list comprehension for sweeps with notes on swapping to concurrent.futures.ThreadPoolExecutor or asyncio.gather for higher node counts. The reference implementation demonstrates three sentinels reporting metrics like CPU 24.15%, RAM 45.20%, and network status STABLE, with payloads designed for JSON serialization across WebSockets, gRPC, or message brokers.
Kube AuthKit is a lightweight Python library that unifies Kubernetes and OpenShift authentication behind a single API, eliminating conditional code paths across local, pod, notebook, and CI/CD environments. It supports four strategies—kubeconfig, in-cluster, OIDC, and OpenShift OAuth—auto-detected by an AuthFactory that probes environment variables and in-cluster markers in a defined order. The library handles token lifecycle transparently, with in-memory storage by default and optional OS keyring persistence for local development to avoid repeated logins. It provides two OIDC flows: device code for headless environments and authorization code with PKCE for interactive applications, both with automatic token refresh. Kube AuthKit returns a standard Kubernetes Python client ApiClient, ensuring full compatibility with the official library, and is actively maintained by the Open Data Hub community for OpenShift AI environments.
Accuracy is misleading for fraud detection because a model labeling everything legitimate can score 96% while catching zero fraud when fraud is only 4% of transactions. The post runs a hand-built Python grid search across algorithm, hyperparameters, feature set, class weight, and decision threshold, ranking by a custom cost metric balancing fraud savings against a US 6 analyst cost per flag. On a 480-transaction test split from a 2,400-transaction dataset with 4% fraud, the winning logistic regression caught 15 of 19 frauds, saving US 3,578 over a baseline that caught none. The winner’s evidence is passed to a local 1-billion-parameter LLM that drafts analyst notes, keeping the LLM downstream of the decision to avoid hallucination. The same workflow scales to Red Hat OpenShift AI by swapping local components for enterprise services like AutoML with AutoGluon and model serving via vLLM.
Cloudflare announced general availability of Python Workers, making Python a first-class language on its developer platform. The runtime now encapsulates type conversion so developers use Cloudflare bindings like D1 and Workers AI directly, without the previously required JavaScript glue code. Popular frameworks FastAPI, Django, and Flask run inside Workers via built-in ASGI and WSCI connectors that translate JavaScript requests into standard Python structures. A custom socket syscall implementation enables TCP connections for database drivers, unlocking Hyperdrive integration with PostgreSQL and MySQL, previously blocked by WebAssembly sandbox limits. Example projects include streaming from Bluesky Jetstream via Durable Objects, building an MCP server with the official Python MCP package, and creating a RAG system with Vectorize, with documentation now including Python examples alongside TypeScript.
Building a knowledge assistant over code requires more careful chunking than indexing ordinary business documents, because code has nested structure, cross-file dependencies, and multiple file formats. The comparison built three Databricks Knowledge Assistants over the Casper’s Kitchens repository: fixed-size character chunks, LangChain language-aware splitting, and AST-based splitting with structure and metadata headers. The AST approach used ASTChunk to preserve units such as functions, classes, or statement blocks and prepend file paths plus class/function hierarchies to chunks. MLflow GenAI evaluation ran 46 questions with retrieval sufficiency, groundedness, and custom answer-correctness judges; AST chunking achieved 89% retrieval sufficiency and 70% fully correct answers, versus 85% and 59% for the naive baseline. The advantage was strongest for disambiguating structurally similar code, while value lookups and complete definition retrieval were comparable across methods.
The best engineering reads, once a week.