Beispiel #1
0
from __future__ import print_function

import logging

from bitcoinetl.build_verify_streaming_dag import build_verify_streaming_dag
from bitcoinetl.variables import read_verify_streaming_dag_vars

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)

# When searching for DAGs, Airflow will only consider files where the string "airflow" and "DAG" both appear in the
# contents of the .py file.
DAG = build_verify_streaming_dag(dag_id='zcash_verify_streaming_dag',
                                 chain='zcash',
                                 **read_verify_streaming_dag_vars(
                                     var_prefix='zcash_',
                                     max_lag_in_minutes=140,
                                 ))
Beispiel #2
0
from __future__ import print_function

import logging

from bitcoinetl.build_verify_streaming_dag import build_verify_streaming_dag
from bitcoinetl.variables import read_verify_streaming_dag_vars

logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)

# When searching for DAGs, Airflow will only consider files where the string "airflow" and "DAG" both appear in the
# contents of the .py file.
DAG = build_verify_streaming_dag(dag_id='bitcoin_verify_streaming_dag',
                                 chain='bitcoin',
                                 **read_verify_streaming_dag_vars(
                                     var_prefix='bitcoin_',
                                     max_lag_in_minutes=130,
                                 ))