S3 input, process files once

Does it possible to to exit from pipeline after processed initial files?
tried to set interval =0 no luck