Skip to content

AttributeError: 'Cancel' object has no attribute 'provision' #1

@alexschroeter

Description

@alexschroeter
│ ❱ 57 │   │   await self.agent.aprovide()                                     │
│   58 │                                                                       │
│   59 │   def _repr_html_inline_(self):                                       │
│   60 │   │   return f"<table><tr><td>rath</td><td>{self.rath._repr_html_inli │
│                                                                              │
│ /opt/venv/lib/python3.12/site-packages/rekuest_next/agents/base.py:503 in    │
│ aprovide                                                                     │
│                                                                              │
│   500 │   │   │   )                                                          │
│   501 │   │   │   await self.astart(instance_id=instance_id)                 │
│   502 │   │   │   logger.info("Starting to listen for requests")             │
│ ❱ 503 │   │   │   await self.aloop()                                         │
│   504 │   │   except asyncio.CancelledError:                                 │
│   505 │   │   │   logger.info("Provisioning task cancelled. We are running") │
│   506 │   │   │   await self.atear_down()                                    │
│                                                                              │
│ /opt/venv/lib/python3.12/site-packages/rekuest_next/agents/base.py:488 in    │
│ aloop                                                                        │
│                                                                              │
│   485 │   │   try:                                                           │
│   486 │   │   │   while True:                                                │
│   487 │   │   │   │   self.running = True                                    │
│ ❱ 488 │   │   │   │   await self.astep()                                     │
│   489 │   │   except asyncio.CancelledError:                                 │
│   490 │   │   │   logger.info(                                               │
│   491 │   │   │   │   "Provisioning task cancelled. We are running" f" {self │
│                                                                              │
│ /opt/venv/lib/python3.12/site-packages/rekuest_next/agents/base.py:473 in    │
│ astep                                                                        │
│                                                                              │
│   470 │   │   if self._errorfuture.done():                                   │
│   471 │   │   │   raise self._errorfuture.exception()                        │
│   472 │   │   else:                                                          │
│ ❱ 473 │   │   │   await self.process(await done.pop())                       │
│   474 │                                                                      │
│   475 │   def step(self, *args, **kwargs):                                   │
│   476 │   │   return unkoil(self.astep, *args, **kwargs)                     │
│                                                                              │
│ /opt/venv/lib/python3.12/site-packages/rekuest_next/agents/base.py:216 in    │
│ process                                                                      │
│                                                                              │
│   213 │   │   │   else:                                                      │
│   214 │   │   │   │   logger.warning(                                        │
│   215 │   │   │   │   │   "Received unassignation for a provision that is no │
│ ❱ 216 │   │   │   │   │   f"Managed: {self.provision_passport_map} Received: │
│   217 │   │   │   │   )                                                      │
│   218 │   │   │   │   await self.transport.log_event(                        │
│   219 │   │   │   │   │   AssignationEvent(                                  │
│                                                                              │
│ /opt/venv/lib/python3.12/site-packages/pydantic/main.py:891 in __getattr__   │
│                                                                              │
│    888 │   │   │   │   │   │   return super().__getattribute__(item)  # Rais │
│    889 │   │   │   │   │   else:                                             │
│    890 │   │   │   │   │   │   # this is the current error                   │
│ ❱  891 │   │   │   │   │   │   raise AttributeError(f'{type(self).__name__!r │
│    892 │   │                                                                 │
│    893 │   │   def __setattr__(self, name: str, value: Any) -> None:         │
│    894 │   │   │   if name in self.__class_vars__:                           │
╰──────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'Cancel' object has no attribute 'provision'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions