Schwab-API-Python icon indicating copy to clipboard operation
Schwab-API-Python copied to clipboard

Checker threads

Open kcgiese opened this issue 4 months ago • 1 comments

To check and update the access token my code calls a function in another module which creates a schwabdev.Client and returns an access_token after renewing the token if necessary. This works fine, but I find that every checker call creates a new thread and these are left running.

Image

Is this a bug that should be addressed?

kcgiese avatar Sep 23 '25 19:09 kcgiese

Schwabdev runs a checker thread to avoid checking everytime when a call is made, when you make multiple clients each one will create a new thread to keep tokens updated. This was not a use case that I considered - you could fork schwabdev and make your own modifications?

tylerebowers avatar Nov 03 '25 17:11 tylerebowers