FireXStuff / firexapp

BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Freeze files for task discovery #2

Open MarcDelahousse opened 5 years ago

MarcDelahousse commented 5 years ago

We need a mechanism to shortcut bundle discovery. If bundles don't change from run to run, we could have a freeze sub-app that could output the list of modules containing tasks. If discovery notices this info, it could forgo active discovery and only import those modules.

Also, this mechanism could allow bundles to explicitly define the tasks they produce.

mabouels commented 5 years ago

What do you mean by "freeze sub-app"?

MarcDelahousse commented 5 years ago

Basically the idea is this. Discovery has a cost to it. We could have the equivalent of a freeze file that already have all the info gathered and so can bypass discovery and just directly read the modules to load.

The sub app (like list, info, and submit) would be what creates this freeze file. It would need to be updated/invalidated when a new bundle is pip installed or uninstalled.