Assembly Workshops with Island Layout (AWIL) possess flexible production capabilities that realize product diversification. To cope with the complex scheduling challenges in flexible workshops, improve resource utilization, reduce waste, and enhance production efficiency, this paper proposes a production scheduling method for flexible assembly workshops with an island layout based on digital twin technology. A digital twin model of the workshop is established according to production demands to simulate scheduling operations and deal with complex scheduling issues. A workshop monitoring system is developed to quickly identify abnormal events. By employing an event-driven rolling-window rescheduling technique, a dynamic scheduling service system is constructed. The rolling window decomposes scheduling problems into consecutive static scheduling intervals based on abnormal events, and a genetic algorithm is used to optimize each interval in real time. This approach provides accurate, real-time scheduling decisions to manage disturbances in workshop production, which can enhance flexibility in the production process, and allows rapid adjustments to production plans. Therefore, the digital twin system improves the sustainability of the production system, which will provide a theoretical research foundation for the real-time and unmanned production scheduling process, thereby achieving sustainable development of production.