A real-time edge scheduling and adjustment framework for highly customizable factories