Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def disable_unhealthy_flow_schedules(self) -> None:

if flows_to_disable:
for flow in flows_to_disable:
self.set_flow_schedule(flow_id=flow.id, active=False)
for _ in range(2): # Existe um bug onde o Flow não desativa com apenas uma query
self.set_flow_schedule(flow_id=flow.id, active=False)

message_parts = [
self.format_flows("🚨 Flows em alerta", flows),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@

def check_for_updates(subscription: TableUpdateSubscription) -> TableUpdateSubscription | bool:
table = subscription.table

if subscription.updated_at < table.last_updated_at:
return subscription
return False
try:
if subscription.updated_at < table.last_updated_at:
return subscription
return False
except Exception:
print(f"Tabela: {table.dataset.name}{table.name} está com erro")
return False


def send_update_notification_email(user: Account, subscriptions: list, date_today: dj_timezone):
Expand Down
Loading