Major Refactor now allows multiple policies to be selected
This commit is contained in:
@@ -123,7 +123,7 @@ def _schedule_once(job_id: str, func_name: str, run_at_timestamp: float, args=No
|
||||
print(f"[WARN] Job {job_id} scheduled in the past. Skipping.")
|
||||
return
|
||||
# Schedule via schedule library
|
||||
schedule.every(delay_seconds).seconds.do(job_wrapper).tag(job_id)
|
||||
schedule.every(int(delay_seconds)).seconds.do(job_wrapper).tag(job_id)
|
||||
|
||||
def _schedule_recurring(job_id: str, func_name: str, interval: int, unit: str, args=None, kwargs=None):
|
||||
args = args or []
|
||||
|
||||
Reference in New Issue
Block a user