Typically its your manager and their manager who let you know. There are cases where the manager either doesn't want to do it, or their manager leaves them out. If your manager doesn't want to do it, their manager will do it. Ideal would be tomorrow and not Friday as notification on Friday for some reason seems a cruel way to end the week.
If your a 3rd party consulting firm bye bye also when the contract is up.