The status of my function is pending validation even though I have published it. Why?

In a function, it is the last action you did that appears. If you have made a modification and then saved, the status can go back to pending validation. If, for example, you had published your function externally and you unpublish it, you will see as status “internal function unpublished”.