-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Use Case]: More Control on Scheduled #640
Comments
The current API already offers this. The first paragraph of the Javadoc for
The aspect that we are aware of that is still needed is to automatically submit/schedule the asynchronous method upon application startup. We have issue #624 to add that. If there is some other capability that you are aware of that is lacking, or if you were asking for other capability of EJB timers that we don't have in Jakarta Concurrency like persistent timers, please be specific about identifying what it is. Otherwise, I will assume 624 adequately covers this requirement.
This is very poorly written, so I can only guess what you are proposing. Are you asking to have overlapping executions of the same asynchronous method such that if one method is scheduled to run every 5 seconds and the first execution takes 18 seconds and the second execution takes 8 seconds, then the first, second, and third executions will all be running at the same time? This would burden the application with needing to write the asynchronous method in a way that is tolerant of overlapping execution. The Concurrency specification has always tried to avoid that sort of usage, and I am unaware of any important use cases that would justify us adding in that complexity, so currently I would vote against this and would need a lot of convincing why it is a good idea.
|
I hope the annotations declaration in our spec has equivalent programmatic approaches, and implements the same features. This means more options for end users. Finally, we can select creating a Jakarta EE application using a functional programming model or by annotation declaration. |
yes, hope there are some options for users to select
|
As a ...
I need to be able to ...
The
@Asynchronous(runAt=)
lacks several features from the existing Spring and EJB.Which enables me to ...
Add the following attributes to the
@Scheduled
annotations.@Timeout
replacement from EJBAdditional information
The text was updated successfully, but these errors were encountered: