{% macro control_external_run_start() %}
    {{ elog("START macro -> control_external_run_start", "INFO", 0)}}

    {% if flags.WHICH in ('run', 'seed', 'snapshot', 'build', 'run-operation') %}
        {{ elog("Run macro insert_A_WORKFLOW_HISTORY", "INFO", 1)}}   
        {{ insert_A_WORKFLOW_HISTORY() }}
        {% do run_query('COMMIT') %}
    {% else %}
        {{ elog("Flag WHICH " ~ flags.WHICH ~ " is out of the list, do nothing.", "WARN", 1)}}
    {% endif %}

    {{ elog("END macro -> control_external_run_start", "INFO", 0)}}
{% endmacro %}
