The time will come when Zack Wheeler’s promotion, set for Tuesday, bumps a pitcher out of the Mets’ starting rotation.

And, barring injury, there are currently two candidates to become a reliever at the top prospect’s expense. Dillon Gee, Wednesday’s starter, is one. Jeremy Hefner is the other.

The two are pitching for their jobs. And, recently, the two have pitched well, forcing a more difficult decision than the organization likely anticipated.

Gee continued making his case for a spot Wednesday, shutting down the high-powered Cardinals (42-23) in a 5-1 triumph for the Mets (24-36) that snapped a three-game losing streak.

Gee (5-6, 4.84 ERA) yielded one run over 6 2/3 innings. His lone consequential mistake occurred in the sixth inning, when Allen Craig slugged an 88 MPH fastball over the wall in the left field for a solo home run to complete a seven-pitch at-bat.

It was one of the six hits Gee surrendered on 107 pitches. He struck out seven and walked two.

“Our job’s the same no matter what,” Gee said when asked if Wheeler’s impending arrival provided a spark. “No matter who’s coming or not coming.”

David Wright and Lucas Duda provided the bulk of the offense. Both lined RBI singles in the first inning and later tacked on solo home runs off Cardinals starter Shelby Miller. The rookie right-hander, making his third career start, compiled 10 strikeouts over six innings, but saw his ERA jump from 1.91 to 2.21.

Marlon Byrd added a solo home run off reliever Seth Maness in the seventh.

Scott Rice and Brandon Lyon provided the bridge to closer Bobby Parnell, who concluded the bullpen’s scoreless effort with a perfect ninth inning in a non-save situation.

Gee dealt his third straight quality start despite flexor tendonitis that has lingered since spring training and has flared up in recent outings. He admitted he likely would not have been able to make his start had it not been for the two additional days of rest consecutive rainouts late last week afforded him. Gee made his start Wednesday on six days rest.