I'm looking for the best way to implement Peewee's context manager with periodic tasks in Huey. Normal tasks have that nice little Huey.context_task() decorator, but there doesn't seem to be anything similar for periodic tasks.
Am I correct to assume I will just have to use an (uglier) with statement within periodic tasks?