“The jig is up” is an old slang expression meaning “the game is over—we’re caught.” A musician’s job is a gig.