Skip to content
Merged
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ 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
# lendemain d'un run. 7d couvre le dernier run hebdo quoi qu'il arrive.
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)
Expand Down
Loading