Unfortunately, you can't either cancel a craft in factories or put it on repeat. Factory workers will be very upset if you cancel their work! They spent so much time and energy on it. But don't worry, all the items you make will be used in the future. You can also speed up the production for emeralds.