Scheduling factory facility as resources