diff --git a/Makefile b/Makefile index f926ab3..03ce072 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ trigger: ## Déclenche le pipeline via le Scheduler (chaîne exacte du cron, fir gcloud scheduler jobs run $(SCHEDULER) \ --location=$(REGION) --project=$(PROJECT) -last-run: ## Affiche la dernière exécution ingestion (statut SUCCEEDED attendu) +last-run: ## Affiche la dernière exécution ingestion (succeededCount=1 attendu) gcloud run jobs executions list \ --job=$(JOB) --region=$(REGION) --project=$(PROJECT) --limit=1 \ - --format='table(name, status.completionTime, metadata.creationTimestamp)' + --format='table(name, status.succeededCount, status.completionTime, metadata.creationTimestamp)' # --freshness=7d : gcloud logging read ne lit que les dernières 24h par défaut. # Le run est hebdomadaire (cron lundi), donc 24h laisse la fenêtre vide hors du @@ -35,7 +35,7 @@ last-run: ## Affiche la dernière exécution ingestion (statut SUCCEEDED attendu logs: ## Prouve l'enchaînement ingestion -> dbt (events structlog) gcloud logging read \ 'resource.type=cloud_run_job AND jsonPayload.event=("ingestion_end" OR "dbt_invoked")' \ - --project=$(PROJECT) --limit=5 --freshness=7d \ + --project=$(PROJECT) --limit=10 --freshness=7d \ --format='value(timestamp, jsonPayload.event)' fresh: ## Prouve la fraîcheur des marts (fct_offres reconstruit au dernier run)