From 03aead70e8bccddbb6989fd809053d9f5ef21b8e Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 28 Jan 2019 15:29:25 -0700 Subject: [PATCH] Do not recreate deleted periodic execution async jobs --- admin/inc/class.admin_cmd.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_cmd.inc.php b/admin/inc/class.admin_cmd.inc.php index 4b1e1c1a5e..9de1739447 100644 --- a/admin/inc/class.admin_cmd.inc.php +++ b/admin/inc/class.admin_cmd.inc.php @@ -392,12 +392,12 @@ abstract class admin_cmd } } // install an async job, if we saved a scheduled job - if ($this->status == admin_cmd::scheduled) + if ($this->status == admin_cmd::scheduled && empty($this->rrule)) { admin_cmd::_set_async_job(); } // schedule periodic execution, if we have an rrule - elseif (!empty($this->rrule)) + elseif (!empty($this->rrule) && $this->status != admin_cmd::deleted) { $this->set_periodic_job(); }