Gravar e-mail: Real-Time Safe Production Scheduling via Causal Inference and Hybrid-Event Control