{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/09c0111cb2dd442ea39377db6d81f65a\" frameborder=\"0\" width=\"1662\" height=\"1246\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1246,"width":1662,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1246,"thumbnail_width":1662,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/09c0111cb2dd442ea39377db6d81f65a-378da8ccdf5b5418.gif","duration":632.957,"title":"Scheduling Reflow Service - Ketul Chhaya","description":"In this video, I explain my approach to implementing the reflow service for scheduling work orders, utilizing a topological sort with the Kahn's algorithm to manage dependencies effectively. I detail how I apply a greedy method to determine the earliest start and end dates while respecting shift intervals and maintenance windows. I walk through two scenarios to illustrate how the reflow service updates the scheduling based on disruptions and constraints. I encourage you to review the changes in the console output to understand the impact of these adjustments on the work orders. Please let me know if you have any questions or need further clarification on the implementation."}