StackStorm / StackStorm/st2

Concurrency issues with workflow or action

Open
#5,787 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Scene:
Receive and consume messages in bulk using kafka

issue:

图片
图片

The workflow is simple, printing messages from kafka, but the action creation process is very slow. If you have more data, or a complex process, that means it's going to be very difficult to process. Does anyone know what causes this?

We use with item for concurrent operations. There is no limit to the number of concurrent operations, but we limit the number of items kafka can consume at a time, which is around 20 pieces of data. But it feels like there's a performance problem, but I can't find the cause. I wonder if you can help me

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are named. Start by reproducing bulk Kafka consumption with roughly 20 items and concurrent workflow actions, then measure action creation and processing times to isolate the bottleneck. Done means the cause is identified with supporting measurements and a concrete remediation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
kafka, python
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.