Skip to content

Tighten deprecation warning for plugin lifecycles that return Promises #71925

@joshdover

Description

@joshdover

Related to #53268

We should start logging deprecation warnings in development for any plugins that return a Promise from their setup or start methods (stop does not currently support Promises at all it technically does, it's just undocumented).

We should also decrease the timeout from 30s to 10s to help nudge plugins away from async lifecycles.

This should be done on both the client and server side.

Metadata

Metadata

Assignees

Labels

Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions