Run arbitrary code from custom app

I have a custom app I’ve written.

There’s a python file inside the app that is currently using hooks to run hourly. How would I run it on-demand in order to test it?

Hi @JamesE,

you can use ipython console using bench console then import and call your method.
or you can also use bench execute path_to_your_function

Thanks,
Makarand

2 Likes

Thanks @makarand_b, bench execute is exactly what I was looking for.