kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
12.93k stars 1.13k forks source link

Avoid using applicationContext.init() to init a RunContext #5492

Open loicmathieu opened 1 month ago

loicmathieu commented 1 month ago

Issue description

Today we init some services needed by the RunContext using applicationContext.init(this). This is costly and as we init a lot of run context this should be improved, for ex by setting the needed dependencies.

See https://github.com/kestra-io/kestra/blob/develop/core/src/main/java/io/kestra/core/runners/DefaultRunContext.java#L120

PurandharAdigarla commented 1 month ago

Hi @loicmathieu, can I get assigned to this issue, I want to give it a try

loicmathieu commented 1 month ago

@PurandharAdigarla be my guest, but as it's schedule for 0.21 and very technical we may not merge it soon.

PurandharAdigarla commented 1 month ago

Thanks for letting me know, I will understand the issue deeper and try to solve it effectively.