The way it works is that IRCC may not necessarily be notified about your conviction if it ever happens. Usually the issue will be brought up the next time you have to deal with IRCC or if you travel and try to reenter the country later (which you should avoid now). This will allow you to continue working for the remainder of your work permit visa and will give you plenty of time to prepare for and plan your next step.