karma icon indicating copy to clipboard operation
karma copied to clipboard

Introduce API to Programmatically Restart Karma

Open jginsburgn opened this issue 3 years ago • 3 comments

There should be an API to programmatically restart Karma.

@devoto13 What do you think?

jginsburgn avatar Aug 12 '21 23:08 jginsburgn

@jginsburgn What exactly do you mean by "restart Karma"? Is it restart a test run? Restart a browser? Restart the whole server? What is the use case? A bit hard to comment on this without more information.

devoto13 avatar Aug 13 '21 07:08 devoto13

I clarified the use case with one of our users: they want Karma to reload its configuration.

jginsburgn avatar Aug 17 '21 13:08 jginsburgn

Not sure if we can implement a generic configuration reload with the current Karma architecture in a reasonable effort. If the idea is to simply restart Karma whenever a config file changes it should be pretty trivial to implement using the programmatic API: watch config file for changes and re-create Karma server whenever change is found.

devoto13 avatar Aug 19 '21 07:08 devoto13