Page MenuHomeElementl

Make instance_ref optional on schedule context, and instance optional on build_schedule_context
ClosedPublic

Authored by cdecarolis on Thu, May 27, 2:53 PM.

Details

Summary

This diff makes instance_ref optional on schedule execution context, and makes the instance optioanl on build_schedule_context. Our recommended testing story for schedules is using evaluate_tick, which does not actually ever require an instance. We can see the code-deletion benefits of this in test_decorators, and we can expect them to be even better for users, who might not know about the existence of instance_for_test.

Test Plan

changed around unit tests, added specific unit test file for build_schedule_context.

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable