def get_item_status(self, name: str) -> Optional[ItemStatus]:
        """Get item status

        Args:
            name: item name
        """
        with get_session(self.db_engine) as session:
            existed = session.query(SchedulerItem).filter(
                SchedulerItem.name == name).first()
            if not existed:
                return None
            return ItemStatus(existed.status)
Get item status

        Args:
            name: item name
        
web_console_v2/api/fedlearner_webconsole/composer/composer.py