Same function in multiple schedules

Same function in multiple schedules

Hi,

I need to use the same custom function in multiple schedules.  I am passing in the last_schedule datetime which will determine what happens in the function, but I want schedules for multiple days and times.  The schedule is for sending reports, so I will have options for 9AM Daily, 5PM Daily, 9AM Weekly on Mondays, 5PM Weekly on Mondays, etc.  I want to just maintain one deluge function to handle the logic, but several schedules for this function to run on.

When I try to use an existing function that has already been used, the only option I have is to duplicate the function.

Is there any way around this??

Thanks,
Alex.