Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications and Cron system #493

Closed
pieroit opened this issue Oct 17, 2023 · 4 comments
Closed

Push notifications and Cron system #493

pieroit opened this issue Oct 17, 2023 · 4 comments
Labels
endpoints Related to http / ws endpoints enhancement New feature or request help wanted Extra attention is needed mad hatter Related to the plugin system

Comments

@pieroit
Copy link
Member

pieroit commented Oct 17, 2023

To allow real science fiction, there should be the possibility for a plugin to extend:

  • Push notifications: reply to websocket messages (eventually http endpoints) send by external system, and the reply goes to human. This breaks the standard cycle clientA - bot - clientA to become clientB - bot - clientA.
  • Cron: scheduled executions of hooks

How do we let the cat cover these use cases?
We're open to suggestions

@pieroit pieroit added enhancement New feature or request help wanted Extra attention is needed endpoints Related to http / ws endpoints mad hatter Related to the plugin system labels Oct 17, 2023
@francescobianco
Copy link

francescobianco commented Nov 17, 2023

Hi eveybody, I enjoy to code cron hook, my target is to get something like that:

put a schedule.py file to the following https://github.com/cheshire-cat-ai/core/tree/main/core/cat/mad_hatter/core_plugin/hooks

than implement a list of schedule hook like these

  • schedule_every_hour
  • schedule_every_minute
  • schedule_every_day

if someone is curious about that follow me to my fork and the branch https://github.com/francescobianco/cheshire-cat/blob/async-behaviour-plugin/core/cat/mad_hatter/core_plugin/hooks/schedule.py

By the way plugin developer can build plugin with async behaviors

@pieroit
Copy link
Member Author

pieroit commented Nov 17, 2023

@francescobianco love this thanks!
Having those as hooks is a great idea

@pieroit
Copy link
Member Author

pieroit commented Nov 17, 2023

@pieroit
Copy link
Member Author

pieroit commented May 24, 2024

WhiteRabbit class merged into develop

@pieroit pieroit closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoints Related to http / ws endpoints enhancement New feature or request help wanted Extra attention is needed mad hatter Related to the plugin system
Projects
Status: Done
Development

No branches or pull requests

2 participants