#133365: самовосстановление cron-задач, retention и деградация поля project

- catch (\Throwable) вместо \Exception в MoleController::actionIndex
- самовосстановление зависших строк (dateStart < now - stuckTimeout) прямо в actionIndex:
  сброс через reArm() или completed = 2 (COMPLETED_FAILED) после превышения maxRetries
- retention выполненных задач: config-параметр keepDays, MoleTask::forgetCompleted()
- фиксация логических часов: nextRunDate() — при ретрае/перепланировании dateAdd
  не остаётся в прошлом, а ставится now + period; счётчик попыток в status
- поле project устарело: убрано из выборки getAllTask(), форм, таблиц и поиска
This commit is contained in:
srybkin committed 2026-12-02 16:44:21 +04:00
1 parent a8b75789f3
commit c0defdb07e
9 files changed
+222 -22

No files matched your search

+1 -2
View File
@@ -82,8 +82,7 @@ class MoleTaskSearch extends MoleTask
->andFilterWhere(['like', 'module', $this->module])
->andFilterWhere(['like', 'type', $this->type])
->andFilterWhere(['like', 'name', $this->name])
->andFilterWhere(['like', 'status', $this->status])
->andFilterWhere(['like', 'project', $this->project]);
->andFilterWhere(['like', 'status', $this->status]);
return $dataProvider;
}