The bug
I set out to make a villager trading hall and when I set up the job tables I got everyone to accept their job just fine but I did notice that when they would accept the job they would flicker their profession a lot before finally deciding on it. After setting everyone up with a table right in front of them I decided to make a villager have the specific trades I wanted however on breaking the table they would not change to jobless and would keep their profession.
Things I have tried:
Breaking any and all beds around to see if they would update
Killing any villagers that were jobless and re trying the whole table breaky thingy
Removing any blocks above the villager
Removing all job tables even the ones that I'm not dealing with which now every villager seams to be stuck in their profession
Opening up the space and giving them more room to see the table
Once I removed all the blocks on top of the villagers I did notice that a lot of villagers who were librarians changed over to clerics which struck as odd because now I have more clerics than brewing stands.
When I did break the blocks I was left with 2 villagers that were jobless so I tried to change their profession to librarian and now they are also stuck with their profession.
I did some testing in creative and it seams if the villager has room to move around they don't become broken like how I'm describing. If this is the case and they do require movement to change and relearn jobs then that might just how this has to be made.
Related issues
is duplicated by
Attachments
Comments


Villager trades are "locked" at dawn or dusk, they'll also only can change profession if they have not been traded before.

yeah I know the bug happens at anytime and also I found out the bug will be fixed in the next release
I am pretty sure this is intended if the daytime is greater than 2000 and less than 9000, as the villagers don't care about their workstations at any other time.

Can confirm for 1.14.3-pre3; noticed that Villagers do not update coordinates of their workstation in {Brain:{}} until a different time of day, but not when setting it to night directly (due to the restock delay at day; fixed for 1.14.3-pre1 from MC-147740) thus retaining their profession until they need to restock (when executing the command: /time set 9000)
It is a weird functionality, if I do say so myself... and it really should apply to any time of day.

This issue is still on 1.14.3 pre-3 and I confirm it aswell.

This bug hasn't yet been resolved in the latest snapshot for 1.14.3 (1.14.3 pre-4).

Sometimes villagers lose interest in their workstation and let other villagers take his job but leaving the original villager employed forever. They will never try to go back to the workstation since they've been traded with.