Set a timeout of 10 seconds to prevent stuck tasks