In the distant past, when I worked in operatios, every flight had a trip number which, while not unique, was only repeated once every 1000 flights. If a flight was cancelled, that trip number was not used, there was a gap in the sequence.
I have no idea whether that system was peculiar to the (very large) airline I worked for, and whether it is still in use.