MCPcopy Create free account
hub / github.com/diffgram/diffgram / add_job

Method add_job

eventhandlers/TaskScheduler.py:20–26  ·  view source on GitHub ↗
(self, job_id: str, cron_expr: str, func, *args, **kwargs)

Source from the content-addressed store, hash-verified

18 self.scheduler = scheduler
19
20 def add_job(self, job_id: str, cron_expr: str, func, *args, **kwargs):
21
22 return self.scheduler.add_job(func = func,
23 trigger = CronTrigger.from_crontab(cron_expr),
24 id = str(job_id),
25 *args,
26 **kwargs)
27
28 def modify_job(self, job_id, **changes):
29 return self.scheduler.modify_job(str(job_id), **changes)

Callers 1

process_new_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected