Skip to content

Instantly share code, notes, and snippets.

@grzeski
grzeski / gist:a82e937e258c6534b2ad72ec54617fbe
Created August 10, 2020 17:50
Airflow migration/initdb output
DB: sqlite:////opt/airflow/airflow.db
[2020-08-10 17:50:01,875] {db.py:378} INFO - Creating tables
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> e3a246e0dc1, current schema
INFO [alembic.runtime.migration] Running upgrade e3a246e0dc1 -> 1507a7289a2f, create is_encrypted
/home/airflow/.local/lib/python3.6/site-packages/alembic/ddl/sqlite.py:41: UserWarning: Skipping unsupported ALTER for creation of implicit constraintPlease refer to the batch mode feature which allows for SQLite migrations using a copy-and-move strategy.
"Skipping unsupported ALTER for "
INFO [alembic.runtime.migration] Running upgrade 1507a7289a2f -> 13eb55f81627, maintain history for compatibility with earlier migrations
INFO [alembic.runtime.migration] Running upgrade 13eb55f81627 -> 338e90f54d61, More logging into task_instance
[2020-08-10 17:45:44,614] {cli_action_loggers.py:107} WARNING - Failed to log action with (sqlite3.OperationalError) no such table: log
[SQL: INSERT INTO log (dttm, dag_id, task_id, event, execution_date, owner, extra) VALUES (?, ?, ?, ?, ?, ?, ?)]
[parameters: ('2020-08-10 17:45:44.611705', None, None, 'cli_webserver', None, 'airflow', '{"host_name": "7efe8eaa02fe", "full_command": "[\'/home/airflow/.local/bin/airflow\', \'webserver\']"}')]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
[2020-08-10 17:45:44,812] {__init__.py:50} INFO - Using executor SequentialExecutor
@grzeski
grzeski / gist:4692098
Created February 1, 2013 15:45
Playing with module for greated good
def play_module():
module = raw_input('Give us the module name:\n')
imported = __import__(str(module))
print "List of properties for %s module:" % module
props = filter(lambda x: False if x.startswith('__') else True, dir(imported))
alphabetic_split = {}
for i in props: