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

Add option for on-demand importing #5

Open
zpriddy opened this issue Nov 18, 2019 · 1 comment
Open

Add option for on-demand importing #5

zpriddy opened this issue Nov 18, 2019 · 1 comment
Labels
feature request New Feature Request

Comments

@zpriddy
Copy link
Owner

zpriddy commented Nov 18, 2019

To optimize Lambda speed we should have an option for GLaDOS to only import on demand for plugins.

To support this the following changes are required:

  • Plugins should have a routes.json file
    • routes.json needs to know the routes, plugin name, and bot name
    • plugins need to know the name of the bot that it is going to run as. This is required for some of the routing
  • Plugins should be able to self generate the routes.json file. However this should be generated before deployment/commit
  • GLaDOS Core needs an option to run on-demand
  • GLaDOS needs different execution functions when running on-demand. These functions need to be able to import plugins at run time
@zpriddy zpriddy added the feature request New Feature Request label Nov 18, 2019
@zpriddy
Copy link
Owner Author

zpriddy commented Feb 20, 2020

This is done but needs some more work to counter the Lambda caching issue.

When importing plugins on demand, it should check to see if the plugin is already imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant