30.05.2013 06:11, Brian F kirjoitti:
> To start with I just started trying to program again after not
> touching it for years so I'm very rusty. I'm using APscheduler to run
> a function daily and eventually multiple functions, that can take
> hours to complete. I want to be able to terminate the running thread
> APscheduler started if so choosen. I tried sched.shutdown(wait=false)
> which stopped the exception from being thrown but the thread continues
> to run and it still shows up under sched.print_jobs(). The running
> program runs some GPIO pins currently attached to LEDs, and I can
> continue to see them run even though the program has exited. Any help
> is greatly appreciated!
Threads cannot be forcibly terminated, that could result in corruption
of the system state. I'm not sure what is supposed to happen to turn off
the LEDs but if terminating the whole process does not help then there's
not much to be done. This isn't something that can be fixed if threads
are used. The only solution would be to use a subprocess based executor,
but another user reported an error with that. I plan to rectify this
issue in APScheduler 3.0 if possible.
> --
> You received this message because you are subscribed to the Google
> Groups "APScheduler" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
apscheduler...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>