erp->ModulVorhanden('rechnungslauf')) { return; } /** @var SubscriptionCycleFullTask $subscriptionCycleFullTask */ $subscriptionCycleFullTask = $app->Container->get('SubscriptionCycleFullTask'); try { $subscriptionCycleFullTask->execute(); $subscriptionCycleFullTask->cleanup(); } catch (Exception $exception) { $subscriptionCycleFullTask->cleanup(); throw new $exception; } /** @var SubscriptionCycleManualJobTask $subscriptionCycleManualJobTask */ $subscriptionCycleManualJobTask = $app->Container->get('SubscriptionCycleManualJobTask'); try { $subscriptionCycleManualJobTask->execute(); $subscriptionCycleManualJobTask->cleanup(); } catch (Exception $exception) { $subscriptionCycleManualJobTask->cleanup(); }