code: def get_scheduling_block_event():
      
      event = DB.rpoplpush('scheduling_block_events',
                           'scheduling_block_event_history')
      if event:
          event = json.loads(event.decode('utf-8'))
      return event
docs: Return the latest Scheduling Block event