dbader / dbader/schedule

Memory Leak

Open
#206 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
12.3k
Forks
999
PR merge metrics
No merged PRs in 30d

Description

After running a couple of hours of schedule scirpt, memory use from 20 MB up to 200 MB and keep increasing in my macbook pro (latest os update).

version info:
Python 3.6.4
schedule (0.5.0)

I am not sure if it is about memory leak or log kepted inside default schedule. Any ideas so that I can look into this issue?

One of my concerns about parameters of worker function. I prefer to use reference as parameter for large dataset for reuse and conn/client object like db connections. Is it the case ? I doubt it because I am using serialized job running, and didn't implement parallel/treading exec for schedule job (use default mode only)

@dbader any thoughts?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported growth using Python 3.6.4 and schedule 0.5.0, starting with the serialized default scheduler and the long-running job pattern described. Inspect whether jobs, logs, parameters, or connections remain retained over time. Done means identifying a reproducible cause and documenting the affected behavior with a regression test or clear reproduction result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
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.