This depends on what kind of pump you have. If you have a sump pump, it can run for 24 hours without any issue since it’s designed to keep your basement dry. A utility pump, on the other hand, works for a couple of hours and is designed to do quick jobs.