# \#python-sdk

**URL:** https://community.temporal.io/tag/python-sdk/3.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [The Lord of the Loop: in search of the best abstraction for LLM-driven Temporal applications with the simplest possible DX](https://community.temporal.io/t/the-lord-of-the-loop-in-search-of-the-best-abstraction-for-llm-driven-temporal-applications-with-the-simplest-possible-dx/18631)

<div class="topic-metadata">

**Author:** [@asuworks](https://community.temporal.io/u/asuworks)\
**Replies:** 6\
**Last updated:** [November 8, 2026, 1:34pm UTC](https://community.temporal.io/t/the-lord-of-the-loop-in-search-of-the-best-abstraction-for-llm-driven-temporal-applications-with-the-simplest-possible-dx/18631 "2026-11-08T13:34:45Z")

</div>

All happy families are alike; each unhappy family is unhappy in its own way. By changing your point of view, you can completely reduce all this complexity. Code the happy path. ― Leo Tolstoy, Anna Karenina ― Maxim F…

---

## [Letting Temporal own LLM retries: max\_retries=0 in the SDK, non-retryable on 4xx](https://community.temporal.io/t/letting-temporal-own-llm-retries-max-retries-0-in-the-sdk-non-retryable-on-4xx/19849)

<div class="topic-metadata">

**Author:** [@apigoto](https://community.temporal.io/u/apigoto)\
**Replies:** 2\
**Last updated:** [November 4, 2026, 2:36am UTC](https://community.temporal.io/t/letting-temporal-own-llm-retries-max-retries-0-in-the-sdk-non-retryable-on-4xx/19849 "2026-11-04T02:36:57Z")

</div>

We wrap a lot of LLM calls in Temporal activities. One mistake took a while to spot: the OpenAI Python client retries by itself (2 retries by default), and so does Temporal. That means one activity attempt can quietly tu…

---

## [MySQL persistence failover without LB/VIP: implementation ready for review](https://community.temporal.io/t/mysql-persistence-failover-without-lb-vip-implementation-ready-for-review/19783)

<div class="topic-metadata">

**Author:** [@Divyanshu](https://community.temporal.io/u/Divyanshu)\
**Replies:** 0\
**Last updated:** [August 23, 2026, 7:48pm UTC](https://community.temporal.io/t/mysql-persistence-failover-without-lb-vip-implementation-ready-for-review/19783 "2026-08-23T19:48:55Z")

</div>

We run self-hosted Temporal on OpenShift with a three-node MySQL deployment and no load balancer or VIP. Temporal currently treats MySQL connectAddr as one endpoint. When the primary changes, Temporal cannot try another…

---

## [Concurrency limit for activities which call async APIs](https://community.temporal.io/t/concurrency-limit-for-activities-which-call-async-apis/19775)

<div class="topic-metadata">

**Author:** [@tempora](https://community.temporal.io/u/tempora)\
**Replies:** 9\
**Last updated:** [August 20, 2026, 4:59pm UTC](https://community.temporal.io/t/concurrency-limit-for-activities-which-call-async-apis/19775 "2026-08-20T16:59:40Z")

</div>

Hi there, I’m new to Temporal so please bear with me. I’ve got a workflow which fans out to many activities, all of which call a 3rd party API. The API asynchronously starts a job and returns. The activity currently re…

---

## [Pattern Sharing: Durable Multi-Agent AI Workflows with HITL via CrewAI](https://community.temporal.io/t/pattern-sharing-durable-multi-agent-ai-workflows-with-hitl-via-crewai/19715)

<div class="topic-metadata">

**Author:** [@obataka123](https://community.temporal.io/u/obataka123)\
**Replies:** 1\
**Last updated:** [August 11, 2026, 9:23pm UTC](https://community.temporal.io/t/pattern-sharing-durable-multi-agent-ai-workflows-with-hitl-via-crewai/19715 "2026-08-11T21:23:27Z")

</div>

Hi everyone, I’ve put together a reference implementation for building fault-tolerant, long-running multi-agent AI orchestrations with Temporal and CrewAI, including explicit Human-in-the-Loop (HITL) approval gates. To…

---

## [Postmortem: Silent Data Loss in an In-Process Vector Store, and the Case for Durable Execution](https://community.temporal.io/t/postmortem-silent-data-loss-in-an-in-process-vector-store-and-the-case-for-durable-execution/19749)

<div class="topic-metadata">

**Author:** [@obataka123](https://community.temporal.io/u/obataka123)\
**Replies:** 0\
**Last updated:** [July 28, 2026, 1:15am UTC](https://community.temporal.io/t/postmortem-silent-data-loss-in-an-in-process-vector-store-and-the-case-for-durable-execution/19749 "2026-07-28T01:15:13Z")

</div>

A recent postmortem on an in-process vector store (ZVec, C++ backend) surfaced a data-loss bug relevant to anyone building durable AI agent or data infrastructure. Root cause: after a process crash, write-ahead-log repl…

---

## [Temporal workflow has blank delays/gaps between activities in local/cloud setup. Is this expected?](https://community.temporal.io/t/temporal-workflow-has-blank-delays-gaps-between-activities-in-local-cloud-setup-is-this-expected/19409)

<div class="topic-metadata">

**Author:** [@JanviKarbonCard](https://community.temporal.io/u/JanviKarbonCard)\
**Replies:** 1\
**Last updated:** [July 22, 2026, 2:29pm UTC](https://community.temporal.io/t/temporal-workflow-has-blank-delays-gaps-between-activities-in-local-cloud-setup-is-this-expected/19409 "2026-07-22T14:29:55Z")

</div>

Expected Behavior After an activity completes, the next activity in the workflow sequence should be scheduled promptly — with only minimal overhead (milliseconds) between ActivityTaskCompleted and the next ActivityTaskSc…

---

## [Is an activity wrapped in async function called via asyncio.gather still deterministic?](https://community.temporal.io/t/is-an-activity-wrapped-in-async-function-called-via-asyncio-gather-still-deterministic/19713)

<div class="topic-metadata">

**Author:** [@ustulation](https://community.temporal.io/u/ustulation)\
**Replies:** 1\
**Last updated:** [July 7, 2026, 11:36pm UTC](https://community.temporal.io/t/is-an-activity-wrapped-in-async-function-called-via-asyncio-gather-still-deterministic/19713 "2026-07-07T23:36:43Z")

</div>

async def helper0(self): self.counter += 1 if self.counter == 1: await execute(activity-foo) else: await execute(activity-bar) async def helper1(self): self.counter += 1 if self.count…

---

## [Logging Format in ECS](https://community.temporal.io/t/logging-format-in-ecs/19671)

<div class="topic-metadata">

**Author:** [@mauriciogeneroso](https://community.temporal.io/u/mauriciogeneroso)\
**Replies:** 1\
**Last updated:** [July 1, 2026, 12:52pm UTC](https://community.temporal.io/t/logging-format-in-ecs/19671 "2026-07-01T12:52:18Z")

</div>

Hi guys, I would like to get the Temporal server logs (history, frontend, matching and worker) in ECS format ( ECS logging libraries | ECS logging libraries ). But what it seems is that the default Temporal log in Json …

---

## [Eviction Issue in workflow](https://community.temporal.io/t/eviction-issue-in-workflow/19511)

<div class="topic-metadata">

**Author:** [@beluga28](https://community.temporal.io/u/beluga28)\
**Replies:** 2\
**Last updated:** [May 20, 2026, 1:51pm UTC](https://community.temporal.io/t/eviction-issue-in-workflow/19511 "2026-05-20T13:51:26Z")

</div>

Failed running eviction job for run ID 019dd4a5-3221-7f36-a26f-170ead6cc7fe, continually retrying eviction. Since eviction could not be processed, this worker may not complete and the slot may remain forever used unless …

---

## [Auto Scaling nightmares with Temporal, Suggestions needed](https://community.temporal.io/t/auto-scaling-nightmares-with-temporal-suggestions-needed/19353)

<div class="topic-metadata">

**Author:** [@SuperSecureHuman](https://community.temporal.io/u/SuperSecureHuman)\
**Replies:** 1\
**Last updated:** [May 18, 2026, 12:41pm UTC](https://community.temporal.io/t/auto-scaling-nightmares-with-temporal-suggestions-needed/19353 "2026-05-18T12:41:11Z")

</div>

I’m running self-hosted Temporal on Kubernetes and exploring autoscaling strategies for workers. So far, I’ve tried: 1. KEDA (backlog-based scaling) It scales based on task queue backlog. The issue is that during spik…

---

## [Python SDK imports\_passed\_through question](https://community.temporal.io/t/python-sdk-imports-passed-through-question/19505)

<div class="topic-metadata">

**Author:** [@Sophie](https://community.temporal.io/u/Sophie)\
**Replies:** 1\
**Last updated:** [April 27, 2026, 4:01pm UTC](https://community.temporal.io/t/python-sdk-imports-passed-through-question/19505 "2026-04-27T16:01:08Z")

</div>

Hello everyone :slight\_smile: So i might have a rather dumb question, but i just could not find the answer anywhere, so … Given that i have a workflow.py that imports some activities and other modules, i would put thos…

---

## [Python SDK workflow test buffering indefinitely](https://community.temporal.io/t/python-sdk-workflow-test-buffering-indefinitely/19473)

<div class="topic-metadata">

**Author:** [@ethan.perry03](https://community.temporal.io/u/ethan.perry03)\
**Replies:** 2\
**Last updated:** [April 20, 2026, 1:34pm UTC](https://community.temporal.io/t/python-sdk-workflow-test-buffering-indefinitely/19473 "2026-04-20T13:34:34Z")

</div>

Hello! I am developing with the Temporal Python SDK and trying to make use of the workflow test support. For context, I am using WorkflowEnvironment.start\_time\_skipping() and when needing to patch other functions/method…

---

## [Clarification on Workflow Patching/Versioning in Python](https://community.temporal.io/t/clarification-on-workflow-patching-versioning-in-python/19170)

<div class="topic-metadata">

**Author:** [@jajaja](https://community.temporal.io/u/jajaja)\
**Replies:** 6\
**Last updated:** [April 1, 2026, 3:14pm UTC](https://community.temporal.io/t/clarification-on-workflow-patching-versioning-in-python/19170 "2026-04-01T15:14:40Z")

</div>

Looking for clarification on this part of the documentation: Specifically, when can we deploy workflow.deprecate\_patch("my-patch"). Looks like there is 4 states: Initial (pre-patch) Patched Deprecated Removed Patch…

---

## [Executing multiple parallel activities in a workflow](https://community.temporal.io/t/executing-multiple-parallel-activities-in-a-workflow/17916)

<div class="topic-metadata">

**Author:** [@Oz\_Weiss](https://community.temporal.io/u/Oz_Weiss)\
**Replies:** 2\
**Last updated:** [March 28, 2026, 3:23pm UTC](https://community.temporal.io/t/executing-multiple-parallel-activities-in-a-workflow/17916 "2026-03-28T15:23:18Z")

</div>

We have a workflow that acts on a batch of data and needs to perform several processing actions on that data. We use Batch APIs for most of our processing but there are some which don’t support batch. In those cases we e…

---

## [RAM memory accumulation](https://community.temporal.io/t/ram-memory-accumulation/19410)

<div class="topic-metadata">

**Author:** [@Igor\_Campos](https://community.temporal.io/u/Igor_Campos)\
**Replies:** 1\
**Last updated:** [March 24, 2026, 2:44pm UTC](https://community.temporal.io/t/ram-memory-accumulation/19410 "2026-03-24T14:44:23Z")

</div>

I have services that use Python with Temporal, and in all of them RAM memory keeps accumulating. It keeps growing until it exhausts the pod or Docker memory. We updated Python and the libraries, used the garbage collecto…

---

## [Running a Temporal Worker as K8 Job](https://community.temporal.io/t/running-a-temporal-worker-as-k8-job/9386)

<div class="topic-metadata">

**Author:** [@pjagielski](https://community.temporal.io/u/pjagielski)\
**Replies:** 2\
**Last updated:** [March 19, 2026, 10:05am UTC](https://community.temporal.io/t/running-a-temporal-worker-as-k8-job/9386 "2026-03-19T10:05:22Z")

</div>

Hi, We have a use case that one activity is a long-running GPU-based ML process. We are running Temporal inside K8 cluster and the idea is to wrap worker executing this activity as K8 Job and use Keda ScaledJob for the …

---

## [We now have a memory leak problem](https://community.temporal.io/t/we-now-have-a-memory-leak-problem/12526)

<div class="topic-metadata">

**Author:** [@alchemya](https://community.temporal.io/u/alchemya)\
**Replies:** 14\
**Last updated:** [March 17, 2026, 8:24pm UTC](https://community.temporal.io/t/we-now-have-a-memory-leak-problem/12526 "2026-03-17T20:24:00Z")

</div>

Our backend uses the Python flask framework and temporal as an asynchronous task queue to handle our scheduled or asynchronous tasks. In our system, temporal is treated as a Celery-like component. We redeployed a server …

---

## [Temporal Helm + MySQL: Is native multi-host DB failover supported (without LB/proxy)?](https://community.temporal.io/t/temporal-helm-mysql-is-native-multi-host-db-failover-supported-without-lb-proxy/19399)

<div class="topic-metadata">

**Author:** [@Divyanshu](https://community.temporal.io/u/Divyanshu)\
**Replies:** 0\
**Last updated:** [March 13, 2026, 8:07pm UTC](https://community.temporal.io/t/temporal-helm-mysql-is-native-multi-host-db-failover-supported-without-lb-proxy/19399 "2026-03-13T20:07:21Z")

</div>

Hi Temporal community, We are running self-hosted Temporal on OpenShift/Kubernetes and want to clarify DB host failover behavior for MySQL. Environment Temporal Helm chart version: 0.73.1 Temporal server appVersio…

---

## [Design pattern for providing workflow-level customization in Temporal agents built using a code-first approach](https://community.temporal.io/t/design-pattern-for-providing-workflow-level-customization-in-temporal-agents-built-using-a-code-first-approach/19377)

<div class="topic-metadata">

**Author:** [@Mandar](https://community.temporal.io/u/Mandar)\
**Replies:** 0\
**Last updated:** [March 6, 2026, 6:31am UTC](https://community.temporal.io/t/design-pattern-for-providing-workflow-level-customization-in-temporal-agents-built-using-a-code-first-approach/19377 "2026-03-06T06:31:02Z")

</div>

I’m building an agent platform on Temporal (Python SDK) where agents and workflows are implemented using a code-first approach. These workflows orchestrate multiple activities and AI-driven steps to perform tasks such as…

---

## [Retry policy for activity failed due to worker deployments](https://community.temporal.io/t/retry-policy-for-activity-failed-due-to-worker-deployments/19301)

<div class="topic-metadata">

**Author:** [@SB\_rb](https://community.temporal.io/u/SB_rb)\
**Replies:** 1\
**Last updated:** [March 1, 2026, 2:57am UTC](https://community.temporal.io/t/retry-policy-for-activity-failed-due-to-worker-deployments/19301 "2026-03-01T02:57:34Z")

</div>

We have a multi-step workflow which runs for multiple days. Some activities submit a batch job to external service and poll for the results in a sleep-poll-sleep loop. The results can take up to days to complete. The pol…

---

## [Option to exclude arguments from EventHistory](https://community.temporal.io/t/option-to-exclude-arguments-from-eventhistory/17365)

<div class="topic-metadata">

**Author:** [@mostlyharmless](https://community.temporal.io/u/mostlyharmless)\
**Replies:** 4\
**Last updated:** [February 16, 2026, 8:47pm UTC](https://community.temporal.io/t/option-to-exclude-arguments-from-eventhistory/17365 "2026-02-16T20:47:04Z")

</div>

Hello there, first of all I have to say that I am having a blast building workflows using Temporal. So thank you for that. However, I also want to migrate a few legacy implementations to Temporal workflows. There is qu…

---

## [How to detect if a Workflow is in a Deadlock state](https://community.temporal.io/t/how-to-detect-if-a-workflow-is-in-a-deadlock-state/19199)

<div class="topic-metadata">

**Author:** [@Matt\_Gray](https://community.temporal.io/u/Matt_Gray)\
**Replies:** 0\
**Last updated:** [January 22, 2026, 7:23pm UTC](https://community.temporal.io/t/how-to-detect-if-a-workflow-is-in-a-deadlock-state/19199 "2026-01-22T19:23:30Z")

</div>

Hello, I am working on a system that only has 1 Worker per site environment, with a Jenkins job that triggers a number of Workflows on an hourly basis from an external script. This means that if one of the Workflows in …

---

## [httpx.ReadError inside activity](https://community.temporal.io/t/httpx-readerror-inside-activity/19173)

<div class="topic-metadata">

**Author:** [@Alexey\_Trofimov](https://community.temporal.io/u/Alexey_Trofimov)\
**Replies:** 1\
**Last updated:** [January 16, 2026, 6:27am UTC](https://community.temporal.io/t/httpx-readerror-inside-activity/19173 "2026-01-16T06:27:35Z")

</div>

I have an activity which uses httpx.AsyncClient то fetch external data. Response data is about 100kB, not great, not terrible. If i start this activity on the local machine everything is good. I get the response. If i …

---

## [HELP - Workers not pooling for task. Task queue are decreasing in workers until 0](https://community.temporal.io/t/help-workers-not-pooling-for-task-task-queue-are-decreasing-in-workers-until-0/18780)

<div class="topic-metadata">

**Author:** [@Carlos\_Tellechea](https://community.temporal.io/u/Carlos_Tellechea)\
**Replies:** 13\
**Last updated:** [January 13, 2026, 4:29pm UTC](https://community.temporal.io/t/help-workers-not-pooling-for-task-task-queue-are-decreasing-in-workers-until-0/18780 "2026-01-13T16:29:44Z")

</div>

We are facing the same issue that is commented in this topic: Workers not polling for tasks We are trying to identify the root cause of the issue in our case. We haven’t found yet. We are using python sdk 1.18.1. with …

---

## [Temporal workflow definition from serverlessworkflow JSON definition](https://community.temporal.io/t/temporal-workflow-definition-from-serverlessworkflow-json-definition/7414)

<div class="topic-metadata">

**Author:** [@srini\_chakravarthy](https://community.temporal.io/u/srini_chakravarthy)\
**Replies:** 5\
**Last updated:** [January 12, 2026, 1:55pm UTC](https://community.temporal.io/t/temporal-workflow-definition-from-serverlessworkflow-json-definition/7414 "2026-01-12T13:55:26Z")

</div>

Hello, I am building an operations workflow orchestration tool using the Temporal platform and Python SDK. For this I need to translate a workflow built on the front end application (using React Flow) into a Temporal wo…

---

## [How to Limit Concurrent Workflow Instances (Workflow-Level Semaphore)](https://community.temporal.io/t/how-to-limit-concurrent-workflow-instances-workflow-level-semaphore/19144)

<div class="topic-metadata">

**Author:** [@sepehr](https://community.temporal.io/u/sepehr)\
**Replies:** 1\
**Last updated:** [January 6, 2026, 4:00am UTC](https://community.temporal.io/t/how-to-limit-concurrent-workflow-instances-workflow-level-semaphore/19144 "2026-01-06T04:00:50Z")

</div>

I have a use case where I need workflows to queue (FIFO), but I’m struggling to find a Temporal-native solution that doesn’t break activity parallelism. Our Scenario We have a resource-intensive pointcloud analysis work…

---

## [Schedule workflows that communicate through Temporal signals](https://community.temporal.io/t/schedule-workflows-that-communicate-through-temporal-signals/18605)

<div class="topic-metadata">

**Author:** [@ammar-deriv](https://community.temporal.io/u/ammar-deriv)\
**Replies:** 5\
**Last updated:** [January 5, 2026, 2:48am UTC](https://community.temporal.io/t/schedule-workflows-that-communicate-through-temporal-signals/18605 "2026-01-05T02:48:29Z")

</div>

I have 5 workflows, lets say workflow A, B, C and D. I want my workflow to communicate with Signal. At the same time I want it to be schedule. What I have done is to using the this documentation/sample-apps/python/signal…

---

## [Avoid printing some stack traces in the logs?](https://community.temporal.io/t/avoid-printing-some-stack-traces-in-the-logs/17985)

<div class="topic-metadata">

**Author:** [@fat](https://community.temporal.io/u/fat)\
**Replies:** 6\
**Last updated:** [January 5, 2026, 2:42am UTC](https://community.temporal.io/t/avoid-printing-some-stack-traces-in-the-logs/17985 "2026-01-05T02:42:16Z")

</div>

Hello, using the python-sdk, when an exception is raised from a workflow or an activity, the stracktrace is shown in the logs along side the exception message. It repeats itself until the workflow fails because of the r…

---

## [How to pass a single dynamic (dict) parameter to an activity](https://community.temporal.io/t/how-to-pass-a-single-dynamic-dict-parameter-to-an-activity/18757)

<div class="topic-metadata">

**Author:** [@fat](https://community.temporal.io/u/fat)\
**Replies:** 2\
**Last updated:** [December 23, 2025, 7:37am UTC](https://community.temporal.io/t/how-to-pass-a-single-dynamic-dict-parameter-to-an-activity/18757 "2025-12-23T07:37:06Z")

</div>

Hi there, following the activity parameters documentation that states: Activity parameters are the function parameters of the function decorated with @activity.defn. These can be any data type Temporal can convert, in…

[Next page](https://community.temporal.io/tag/python-sdk/3.md?match_all_tags=true&page=1&tags%5B%5D=python-sdk)
