Use the method AutoFlushEvent#isFlushRequired to filter auto flush events

Description

At the moment `AutoFlushEvent#isFlushRequired` returns always false, even if the actionQueue is not empty.
See HHH-13592.

When the issue is closed, we will use the method to decide whether to skip the prapare of the current work plan or not on auto flush event.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Fabio Massimo Ercoli

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure