SIENTIAPDE-1231

Remove obsolete job and MLflow metadata files to streamline project structure and eliminate unused configurations.
This commit is contained in:
2025-10-16 10:08:04 -03:00
parent f8397582d4
commit 13644d5ebf
4 changed files with 0 additions and 62 deletions

View File

@@ -1,45 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: delete-old-rows
namespace: sientia
spec:
template:
spec:
containers:
- name: delete-old-rows
image: docker.io/bitnami/postgresql:16.2.0-debian-12-r10
env:
- name: PGPASSWORD
value: "asidhsd@!#!@@!ASD!@#!ASDQ@#!FSDTRYJG#@@$#@%"
- name: PGUSER
value: temporal
- name: PGHOST
value: "paradedb-rw.paradedb.svc.cluster.local"
- name: PGDATABASE
value: "temporal_visibility"
command:
- "sh"
- "-c"
- |
# COMANDO CORRIGIDO - Excluir apenas workflows COMPLETED/FAILED antigos
# Preserva schedules (que ficam RUNNING) e workflows recentes
psql -h $PGHOST -U $PGUSER -d $PGDATABASE -c "
DELETE FROM public.executions_visibility
WHERE start_time < NOW() - INTERVAL '1 minutes'
AND status IN (2, 3, 4, 5, 7);"
# Comando para executar VACUUM FULL após a exclusão
psql -h $PGHOST -U $PGUSER -d $PGDATABASE -c "VACUUM FULL public.executions_visibility;"
envFrom:
- secretRef:
name: postgres-credentials
restartPolicy: Never
backoffLimit: 0
ttlSecondsAfterFinished: 3600
# kubectl apply -f clean_job.yaml -n sientia
# kubectl create secret generic postgres-credentials --from-literal=postgres-password=sientia --from-literal=postgres-username=sientia -n sientia4
# drop database temporal; drop database temporal_visibility; create database temporal owner temporal; create database temporal_visibility owner temporal;

View File

@@ -1,6 +0,0 @@
artifact_location: file:///home/grezewave/Documents/projects/sientia/sientia-dataops-laborious_temporal/mlruns/0
creation_time: 1760447041053
experiment_id: '0'
last_update_time: 1760447041053
lifecycle_stage: active
name: Default

View File

@@ -1,6 +0,0 @@
artifact_location: file:///home/grezewave/Documents/projects/sientia/sientia-dataops-laborious_temporal/mlruns/586524947870967910
creation_time: 1760447067255
experiment_id: '586524947870967910'
last_update_time: 1760447067255
lifecycle_stage: active
name: test

View File

@@ -1,5 +0,0 @@
aliases: {}
creation_timestamp: 1760447068191
description: null
last_updated_timestamp: 1760447068191
name: test