Skip to content

Instantly share code, notes, and snippets.

View ferruzzi's full-sized avatar

D. Ferruzzi ferruzzi

  • AWS
  • Vancouver, BC
View GitHub Profile
@ferruzzi
ferruzzi / 00_README.md
Last active November 4, 2025 23:15
Comprehensive Testing Plan for Migration 0092_3_2_0_ui_improvements_for_deadlines.py

Comprehensive Testing Plan for Migration 0092_3_2_0_ui_improvements_for_deadlines.py

In addition to this README, there are three files in this Gist:

  1. [COMPRESSED]: Tests the migration when COMPRESS_SERIALIZED_DAGS is True.
  2. [UNCOMPRESSED]: Tests the migration when COMPRESS_SERIALIZED_DAGS is False, which is the Airflow default setting.
  3. [UNIFIED]: All steps for both of the above tests combined into one file, in case that is more convenient.

Note 1:

In order to compare your output directly to the Expected Outoput, copy the Dag file from Appendix 1 of the

@ferruzzi
ferruzzi / basic_test_dags.py
Created November 14, 2024 00:49
A few basic DAGs which come in handy for Airflow debugging
from datetime import datetime
from time import sleep
from airflow import DAG
from airflow.decorators import task
from airflow.utils.dates import days_ago
with DAG(dag_id="5_min", schedule_interval=None, start_date=days_ago(1)) as dag:
@task
function setProtection(msg, location) {
/** *******************************************
- check if new base is already protected
- if timer remaining is within reup time, then
- cancel old timers
- set new timers
**********************************************/
const ensureLocation = new Promise((resolve, reject) => {
if (location) {
resolve(location);