You can apply any time. You may have improved chances of success if you wait until you get the AOR (acknowledgement of receipt).
But far more likely to have an impact is profile, i.e. likelihood of leaving Canada (as with any other TRV application).
Not knowing your specific situation, one important factor may be your spouse's residency status in Germany.