-
Notifications
You must be signed in to change notification settings - Fork 352
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
Add native support for CronJobs #1182
Comments
On the runtime side, we can use a trick similar to the one we use for Do you mind opening an issue on runtime side too? |
Opening.. I've sketched a solution using a different trick (customizer), so that it can be used also when you need a knative-source loader.. Will try to publish soon, so we can iterate on that |
To complete the Camel K "serverless experience", a simple addition would be the support for Kubernetes CronJob out of the box.
A user running an integration like:
Can have it materialized as cronjob.
In practice, a pod will be created by Kubernetes only when it's time to run the integration and there's no pod running between executions.
This rocks in combination with Quarkus.
There will be periods of the timer that cannot be supported (sub minute, or periods that cannot be expressed by a cron), but that should be fine, we fallback to normal implementation.
Equivalently, we can also add:
The translation is easier, even if quartz supports 6-7 fields in the cron expression, while Kubernetes only 5 (no seconds, no years).
This requires some changes also at runtime level.
The text was updated successfully, but these errors were encountered: