File tree 1 file changed +3
-2
lines changed
app/code/Magento/Cron/Observer 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -199,8 +199,6 @@ public function execute(\Magento\Framework\Event\Observer $observer)
199
199
$ phpPath = $ this ->phpExecutableFinder ->find () ?: 'php ' ;
200
200
201
201
foreach ($ jobGroupsRoot as $ groupId => $ jobsRoot ) {
202
- $ this ->_cleanup ($ groupId );
203
- $ this ->_generate ($ groupId );
204
202
if ($ this ->_request ->getParam ('group ' ) !== null
205
203
&& $ this ->_request ->getParam ('group ' ) !== '\'' . ($ groupId ) . '\''
206
204
&& $ this ->_request ->getParam ('group ' ) !== $ groupId
@@ -234,6 +232,9 @@ public function execute(\Magento\Framework\Event\Observer $observer)
234
232
continue ;
235
233
}
236
234
235
+ $ this ->_cleanup ($ groupId );
236
+ $ this ->_generate ($ groupId );
237
+
237
238
/** @var \Magento\Cron\Model\Schedule $schedule */
238
239
foreach ($ pendingJobs as $ schedule ) {
239
240
$ jobConfig = isset ($ jobsRoot [$ schedule ->getJobCode ()]) ? $ jobsRoot [$ schedule ->getJobCode ()] : null ;
You can’t perform that action at this time.
0 commit comments