async def METHOD_NAME(session: database.AsyncSession, worker_id: str) -> bool:
    """
    Check whether we should carry out a compliance check for the given worker, based on time since last check.
    Trusted workers are excluded.
    """
    worker = await worker_utils.get_worker(worker_id, session)
    if worker.trusted:
        return False
    if worker.in_compliance_check:
        return False
    if worker.next_compliance_check is None:
        return True
    if worker.next_compliance_check < datetime.datetime.utcnow():
        return True
    return False