Oct-18-2022, 04:20 PM
(This post was last modified: Oct-18-2022, 04:20 PM by deanhystad.)
The code I post here are examples meant to demonstrate how to use a tool. The last example created a reminder database then immediately pulled all the reminders out of the database and scheduled them. Does that make any sense? Then it ran the schedule in a loop until the reminder schedule was empty. Does that make any sense if what you want is to have the scedule run without blocking the main loop that will run BAXTER? The example is a great demo because it runs all by itself and you can see how everything works in a couple of minutes, but it is a poor template for how you should use scheduler. Use the example to UNDERSTAND how the tools are being used. When you understand the tools, then you can apply them to solving your problem
while True: #Run Reminders schedule_reminder(scheduler) # Does this belong in a loop? BAXTER() while not scheduler.empty(): # Do you want this loop? scheduler.run(False)