When someone says the "gig" is up, they mean that an engagement has played its course. When someone says the "jig" is up, it indicates that a scoundrel has been found out, and the forces of law and order are on their way.
The Jig is Up - CBC.ca
www.cbc.ca/news2/indepth/wo…