Why is my Linux box dropping network connection?
1,158
Following Oldskool's comment, I changed the WiFi channel on the router, and WiFi on the Pi's been running for weeks now. I can only assume that's fixed it for some reason. There's only one other network in my area, and it had a really weak signal, so not sure why changing the channel would make a difference.
Related videos on Youtube
Author by
Moses N. Njenga
Updated on September 18, 2022Comments
-
Moses N. Njenga over 1 year
I am trying to send an email in the background at a specific time everyday in flask. The app hangs just about when I add a job, and I think I am having an issue with threading. The config looks like this
jobstores = { 'default': SQLAlchemyJobStore(url='path_to_my_db') } executors = { 'default': ThreadPoolExecutor(5), 'processpool': ProcessPoolExecutor(3) } job_defaults = { 'coalesce': False, 'max_instances': 3 } scheduler = BackgroundScheduler(jobstores=jobstores, executors=executors, job_defaults=job_defaults, timezone=utc) scheduler.start()
then am adding my job
def send_reports(): msg = Message("Microphone testing 1, 2", recipients=["[email protected]"]) mail.send(msg) scheduler.add_job(send_reports, 'cron', hour=8, minute=23)
If i comment out
scheduler.add_job
line the app runs normallyIn the virtual host I have the lines
WSGIDaemonProcess www.mycomapny.com processes=2 threads=5 WSGIScriptAlias / /var/www/html/myapp.wsgi
Will appreciate your assistance
-
Oldskool over 11 yearsSeems like this is a common Pi problem: raspberrypi.org/phpBB3/viewtopic.php?t=13169&p=151044 .. one of the tips mentioned there, to change your Wifi channel, might be worth a try.
-