Giter Site home page Giter Site logo

temporal-sdk-issue's Introduction

Reproduce memory leak in temporal Python SDK 1.1.0

  1. Create venv using poetry
  2. Copy env.tpl to .env and populate the fields with your temporal cloud credentials (URL + certs)
  3. Start worker via python main.py worker
  4. Trigger multiple runs via time poetry run python main.py trigger --timeout=0.1 --sub-activities=0 --sub-workflows=100 &
  5. Every run adds ~20MB according to the MacOS activity monitor
  6. According to tracemalloc (which prints every 30s( we have a surprising amount of dataclasses hanging around

Remarks:

  • The workflow spans 100 sub-workflows which all wait for 0.1s - no activity is run (did not see any weird behaviour when there were only sub-activies)
  • gc.collect() has no effect, these dataclasses really do exist somewhere
  • Going higher than 100 sub-workflows leads to Potential deadlock detected, workflow didn't yield within 2 second(s) - which is problematic in it's own right

temporal-sdk-issue's People

Contributors

yasinzaehringer-paradime avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.