зеркало из https://github.com/mozilla/opmon.git
Only create alerts view if alerts table exists
This commit is contained in:
Родитель
31d608edc0
Коммит
9d1308b927
|
@ -79,9 +79,6 @@ class Monitoring:
|
|||
print(f"Create alerts data for {self.slug}")
|
||||
self._run_sql_for_alerts(submission_date)
|
||||
|
||||
print(f"Create alerts view for {self.slug}")
|
||||
self.bigquery.execute(self._get_alerts_view_sql())
|
||||
|
||||
return True
|
||||
|
||||
def _run_metrics_sql(self, submission_date: datetime):
|
||||
|
@ -315,6 +312,9 @@ class Monitoring:
|
|||
dataset=self.derived_dataset,
|
||||
)
|
||||
|
||||
print(f"Create alerts view for {self.slug}")
|
||||
self.bigquery.execute(self._get_alerts_view_sql())
|
||||
|
||||
def _get_alerts_view_sql(self) -> str:
|
||||
"""Return the SQL to create a BigQuery view."""
|
||||
render_kwargs = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче