Skip to content

Commit

Permalink
Recursive broadcast fix (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshsattala authored Sep 30, 2024
1 parent b28c204 commit 1ae9ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kairon/events/scheduler/kscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def update_job(self, event_id: Text, task_type: TASK_TYPE, cron_exp: Text, event

def add_job(self, event_id: Text, task_type: TASK_TYPE, cron_exp: Text, event_class: Text, data: dict, timezone=None):
func = ExecutorFactory.get_executor().execute_task
args = (event_class, task_type, data)
args = (event_class, data)
kwargs = {'task_type': task_type}
trigger = CronTrigger.from_crontab(cron_exp, timezone=timezone)
KScheduler.__scheduler.add_job(func, trigger, args, kwargs, id=event_id, name=func.__name__,
Expand Down

0 comments on commit 1ae9ba3

Please sign in to comment.