| 798 | |
| 799 | |
| 800 | def _warn_for_runid_changed(state): |
| 801 | util.warn( |
| 802 | "Loading context for %s has changed within a load/refresh " |
| 803 | "handler, suggesting a row refresh operation took place. If this " |
| 804 | "event handler is expected to be " |
| 805 | "emitting row refresh operations within an existing load or refresh " |
| 806 | "operation, set restore_load_context=True when establishing the " |
| 807 | "listener to ensure the context remains unchanged when the event " |
| 808 | "handler completes." % (state_str(state),) |
| 809 | ) |
| 810 | |
| 811 | |
| 812 | def _instance_processor( |