Ejemplo n.º 1
0
def monthly_materialization_schedule():
    @monthly_partitioned_config(start_date=datetime.datetime(2021, 1, 1),
                                timezone=_toys_tz_info())
    def monthly_materialization_config(_start, _end):
        return {}

    return build_schedule_from_partitioned_job(
        many_events.to_job("many_events_monthly",
                           config=monthly_materialization_config), )
Ejemplo n.º 2
0
def test_many_events_subset_job(executor_def):
    result = many_events.to_job(
        op_selection=["many_materializations_and_passing_expectations*"],
        executor_def=executor_def).execute_in_process()
    assert result.success

    executed_step_keys = [
        evt.step_key for evt in result.all_node_events
        if evt.event_type == DagsterEventType.STEP_SUCCESS
    ]
    assert len(executed_step_keys) == 3
Ejemplo n.º 3
0
def test_many_events_job(executor_def):
    assert many_events.to_job(executor_def=executor_def).execute_in_process().success