I am trying to refactor my code so I can split out my subprocess call and reuse the subprocess in different functions. This does not seem to work right though. Any pointers? #python
@formfireglass@jws thanks. it's mostly in the evenings now when she is rally tired. but it is getting better by the day. it just is really stressful when you know that a good helping of boob will help, but mommy is not available.
@jws the reason was probably neither. She got her first vaccination on Thursday and has been irritable since then. I mean a healthy helping of boob fixed it (of course), but it's still not fun.
Oh man. I did so not miss these times of getting SCREAMED at for what feels like hours (10 minutes) by a three months old. Baby days cannot be over soon enough.
@jws I'm trying to build some smarts into the whole thing. check if processed file already exists and is newer then the source file. if so, skip it. if not run the process.
@jws it's heavily io-bound actually. opening modo (about 15 seconds alone), then processing about 15K CAD items. That's several hours or days. So I definitely need to get a progress bar working. :)
@jws oh absolutely. but I wanted to get basic functionality working first. there will be proper naming going on. otherwise I'd get lost in my spaghetti code after 5 minutes. :)
@jws that was my very first try actually. But just print the same thing forever: ``` while thread1.is_alive: print(threading.activeCount()) print(threading.enumerate()) ```
@jws my thread starts, the function `batch_processor_model` runs as it is supposed to. and I get back to the `print "Done"`so I know that the thread has reached its end. but `threading.activeCount()` still tells me there is one active thread running.
Any Python people around? I need help with threading (my first foray into threading). I have basic threading working, but my thread never stops running and I have no idea why.