Skip to content

Commit

Permalink
feat(core): don't failed on startup for invalid plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Sep 8, 2023
1 parent a2c81b2 commit c880df6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/main/java/io/kestra/core/plugins/PluginScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ private RegisteredPlugin scanClassLoader(final ClassLoader classLoader, External
loader.collectAll(definitions);

for (BeanIntrospectionReference definition : definitions) {
Class beanType = definition.getBeanType();
Class beanType;
try {
beanType = definition.getBeanType();
} catch (Throwable e) {
log.warn("Unable to load class '{}' on plugin '{}'", definition.getName(), externalPlugin.getLocation().toString());
continue;
}

if (Modifier.isAbstract(beanType.getModifiers())) {
continue;
Expand Down

0 comments on commit c880df6

Please sign in to comment.