问题描述
我有一个治疗师系统,每个治疗师都会添加一个会话,并在客户预订会话时为其添加时间
我运行queued job
来提醒客户和医生
- 会话开始时
- 在会议开始前 3 小时
- 在会议开始前 1 小时
这是我的代码示例
if($this->timeslot->last_charge_type == 'success'){
dispatch(new SessionReminderJob($this->timeslot,$patient,$doctor))
->delay($this->timeslot->start_time->subHour());
dispatch(new SessionReminderJob($this->timeslot,$doctor))
->delay($this->timeslot->start_time->subHours(3));
}
我的问题是,当客户想要重新安排此会话时,如何停止所有这些作业并在新时间运行新作业。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)