32 Commits

Author SHA1 Message Date
laur89 9b6203ceca task: remove extraneous defaults from Isolator/MonitorTask (#9514)
* task: remove extraneous defaults from Isolator/MonitorTask

- ExecuteWithTimeLimit -- the only user of private MonitorTask --
  already defines the defaults for memoryCap & sleepInterval

* fix: typos
2026-06-08 13:56:37 -03:00
Martin-Molinero e0db31dc08 Stop forcing full GC collection when reduced memory (#9267)
Python Virtual Environments / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
2026-02-04 13:54:27 -03:00
Martin-Molinero cd7663ef97 Minor tweaks for testing (#8679)
* Minor tweaks for backtest tests

* More tweaks
2025-04-07 18:41:44 -03:00
Martin-Molinero 71d09a3567 Private cloud minor improvements (#8409)
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Private cloud tweaks

* Minor tweaks for optimization
2024-11-14 17:22:33 -03:00
Martin-Molinero f2f1d06237 Improve shutdown (#8335) 2024-09-19 19:32:29 -03:00
Jhonathan Abreu a912638496 Move QuantConnect namespace's messages to Messages folder (#6924) 2023-02-10 10:41:05 -03:00
Martin-Molinero 30d137e9cc Track CPU usage (#6520)
Regression Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
- Track CPU usage, useful for debugging
2022-08-01 11:10:52 -03:00
Martin-Molinero 284b26a9bd Performance improvements and fixes (#6330)
Regression Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* Reuse GUID

* Reduce Lean task usage

* Reduce CPU usage

* Address reviews
2022-05-13 15:04:09 -03:00
Martin-Molinero e6d16882f7 Remove raw Sleeps for Sleeps+Event (#5153)
- Remove raw Thread.Sleep for Event driven wait/sleeps. Improves startup
  performance significantly
2021-01-12 19:12:07 -03:00
Michael Handschuh d709d1c4e0 Update Common to respect CA1304 and CA1305
Updates all occurrences of parsing/ToString-ing to go through the new
StringExtensions methods that use CultureInfo.InvariantCulture

See #3045
2019-09-12 14:13:24 -04:00
Martin Molinero 4382aa1886 Add algorithm thread
- Adding `WorkerThread` class, wrapper for a worker thread that will
execute given `Actions`.
    - Algorithm related code (`Construction`, `Initialization`,
    `Execution` will be executed by the same `WorkerThread` instance,
    this is required for `Python` debugging.
2019-05-09 11:23:28 -03:00
Stefano Raggi 462ca4ecab Add total application memory usage in Isolator logging
- Added logging of total memory usage, which includes both managed and unmanaged memory
- Fixed incorrect calculation of total physical memory for Windows
2019-01-10 15:33:10 +01:00
Martin Molinero 4d7dfe1c89 Initialize algorithm faster
- ISetupHandler implementations will now use 50ms as sleep interval
while initializing the algorithm
- If the sleep interval is >= to 1s (default value) it will divide the
sleep operations into 5
2018-10-31 18:05:12 -03:00
Martin Molinero 8ac4b37e5f Load algorithm faster
- Make `Isolator.ExecuteWithTimeLimit()` sleep interval configurable.
- `Loader` will now use 50ms
2018-10-18 20:08:25 -03:00
Stefano Raggi 543f5aa6b4 Add IsWithinCustomLimits bool property to IsolatorLimitResult 2018-10-04 20:08:03 +02:00
Stefano Raggi c077689e50 Add CurrentTimeStepElapsed to Isolator logging 2018-10-04 00:11:12 +02:00
Michael Handschuh 818591e101 Revert "Isolator will now take into account unmanaged memory usage"
This reverts commit 221a90c81a.

Causing algorithms to fail. This wasn't intended to be merged until
after the pythonnet memory leak fix has been merged/deployed.
2018-07-23 12:18:38 -04:00
Martin Molinero 221a90c81a Isolator will now take into account unmanaged memory usage 2018-07-19 18:54:40 -03:00
jaredbroad 9ab54a19b5 Fixes and additional logging and debug information 2017-04-06 11:02:32 -04:00
jaredbroad 8896f925fb Added spike limit allowance 2017-04-06 09:57:53 -04:00
jaredbroad e35078d592 Made ram limit a 60s EMA to reduce spikes killing algorithms 2017-04-06 09:50:44 -04:00
jaredbroad 1cf4d7c00e Removed default value for memory cap to force explictly setting 2017-02-16 18:16:48 -05:00
snugs 79bd97f994 Make Isolator immutable, use .NET naming conventions 2015-06-15 13:50:23 -04:00
QuantConnect 6b035d323c Converted Isolator to be an instance based class 2015-06-14 12:31:26 -04:00
QuantConnect fde0cbed3a Strip out block quote section header comments 2015-06-13 16:04:27 -04:00
QuantConnect a2f630e1eb Made isolator cancellation tokens public to control lean from desktop UX 2015-06-06 15:08:29 -04:00
snugs 89b6e98af8 Fixes warnings mostly relating to xml comments
Also cleans up some block comments

Via PR#72 - thanks @ammachado!
2015-05-13 10:56:47 -04:00
snugs 790ce35c55 Adds 10 minute default time limit to each algo mgr loop
Overrideable with 'algorithm-manager-time-loop-maximum' configuration value in minutes
2015-05-12 18:16:23 -04:00
snugs 216724b9fc Use Log.Trace in Isolator 2015-03-31 16:31:24 -04:00
snugs f616e16b71 Removed usages of Console.* from core Lean 2015-03-31 16:29:34 -04:00
QuantConnect fd218fd77d More aggressive GC, regular logging memory usage to diagnose memory leaks 2015-02-25 15:37:29 -03:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00