Python Forum
How to properly close db connection, best practice
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to properly close db connection, best practice
#2
I've decided to create another loop for the db connection that refreshes the connection and stops all other functions every 10 mins. My next question is how to run multiple functions in parallel so that I can do a sleep() or time.wait() while other stuff runs.
Reply


Messages In This Thread
RE: How to properly close db connection, best practice - by t4keheart - Jan-21-2020, 07:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how can I organise my code : best practice? pythonbum 0 209 May-24-2024, 03:17 PM
Last Post: pythonbum
  Serial connection connection issue Joni_Engr 15 8,665 Aug-30-2021, 04:46 PM
Last Post: deanhystad
  Threading best practice EvanS1 2 2,089 Apr-21-2020, 10:11 PM
Last Post: EvanS1
  Help with string practice Hermann_Fegelein 2 2,824 Aug-15-2018, 04:56 PM
Last Post: Hermann_Fegelein
  Best Practice For String Quotations ? Zork_3 9 50,445 Sep-01-2017, 07:16 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020