Add support for preconditions
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
No files, tests, or entry points are named in the issue. Start by resolving how precondition queries should be expressed and whether a false result is a no-op or a failure; done means the agreed behavior is implemented for SQL Runner playbooks and verified for both described use cases.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Use case 1
Imagine that:
- You have a process landing new data in Redshift roughly every 40-60 minutes
- You want to kick off a SQL Runner playbook as soon as the new data has arrived
- The playbook has a non-trivial runlength whether or not there is new data
- You want the playbook to complete as soon as possible
Use case 2
Imagine that:
- You want to upgrade a Redshift table by adding some columns
- You only want to perform the upgrade if the table is v0.5.0 and the table is empty
Solution
We could add a new feature to SQL Runner: playbook preconditions: for the playbook steps to be executed, all of the precondition queries must return TRUE. If any of them return FALSE, then the playbook doesn't run (a "no-op", or possibly a "failure").
Open question: whether it's a bit fiddly constructing the preconditions SQL queries to return TRUE/FALSE - it might be easier to add a syntax to compare the resultset with what's expected.
- Lenguaje dominante
- Go
- Estrellas
- 81
- Forks
- 15
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de snowplow/sql-runner
-
Update to aws-sdk-go-v2Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
snowplow/sql-runner#218 · 1 comentario ·
-
Implement a loggerAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
snowplow/sql-runner#194 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
snowplow/sql-runner#193 · 1 comentario ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
snowplow/sql-runner#186 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
snowplow/sql-runner#185 ·
Todos los issues de snowplow/sql-runner
Issues similares
-
automation models
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mvanhorn/cli-printing-press#5146 ·
Los mantenedores suelen responder en 1 día
-
.jsonc files are skippedAbiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
alibaba/open-code-review#1800 ·
Los mantenedores suelen responder en 1 día
-
kind/engineering needs-triage pulumi/registry R2 S2 Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día