Users.get_user() returns None in freshly launched background tasks

Please, have a look at the simple app here - https://anvil.works/build#clone:BRWUNHAYNAQDZUVS=ODDXQQBW5GAVTOOGWN3HBNTX It has a scheduled task for every minute that uses a system user (logs the user in). The inner task verifies what user is logged in. The idea is that the inner task can be invoked with an admin button and has to check for an admin user … for example. Again, this used to work for literally months in a row.

I can reproduce this problem every time.