fix: repr WoodpeckerEvent??!!
This commit is contained in:
parent
53bbf001a0
commit
d5f94e26c6
2 changed files with 1 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ class ReloadService:
|
||||||
started=int(datetime.now().timestamp()),
|
started=int(datetime.now().timestamp()),
|
||||||
files=[f"compose/{event.service}/docker-compose.yml"] + [str(pp) for pp in list(mos)]
|
files=[f"compose/{event.service}/docker-compose.yml"] + [str(pp) for pp in list(mos)]
|
||||||
)
|
)
|
||||||
logger.debug(f"Sending <WoodpeckerEvent _id={we.id} commit={we.commit} ref={we.ref} message={we.message} started={we.started} files={we.files}")
|
logger.debug(f"Sending <WoodpeckerEvent commit={we.commit} ref={we.ref} message={we.message} started={we.started} files={we.files}")
|
||||||
await self._bus.dispatch(we)
|
await self._bus.dispatch(we)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Reload error: {e}", exc_info=True)
|
logger.error(f"Reload error: {e}", exc_info=True)
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,5 @@ class WoodpeckerEvent(BaseEvent):
|
||||||
started: int
|
started: int
|
||||||
files: List[str]
|
files: List[str]
|
||||||
|
|
||||||
@property
|
|
||||||
def id(self):
|
|
||||||
return self._id
|
|
||||||
|
|
||||||
class ReloadEvent(BaseEvent):
|
class ReloadEvent(BaseEvent):
|
||||||
service: str
|
service: str
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue