Skip to content
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 scheduled service #15761

Merged
merged 2 commits into from
Aug 19, 2022
Merged

Add scheduled service #15761

merged 2 commits into from
Aug 19, 2022

Conversation

benmoriceau
Copy link
Contributor

What

This is adding a new app in docker and kube. This app is a micronaut server which allow to have Bean being inject into it. The goal of those bean is to run scheduled activities. The example service is not doing anything on purpose and should be consider as a template.

It has been manually tested on docker using a log.

@github-actions github-actions bot added area/platform issues related to the platform kubernetes labels Aug 18, 2022
@benmoriceau benmoriceau force-pushed the bmoric/self-healing-service branch from 21da7b0 to c64325e Compare August 18, 2022 17:19
container_name: airbyte-cron
restart: unless-stopped
environment:
- DB=postgresql
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not need now but it will be needed in the future for sure. It is better to put it now.

@benmoriceau benmoriceau temporarily deployed to more-secrets August 18, 2022 17:21 Inactive
@benmoriceau benmoriceau force-pushed the bmoric/self-healing-service branch from c64325e to 22bc9a7 Compare August 18, 2022 17:35
@benmoriceau benmoriceau changed the title Add logger scheduled service Ad scheduled service Aug 18, 2022
@benmoriceau benmoriceau changed the title Ad scheduled service Add scheduled service Aug 18, 2022
@benmoriceau benmoriceau temporarily deployed to more-secrets August 18, 2022 17:37 Inactive
public class MicronautCronRunner {

@Inject
Temporal temporal;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is just to ensure that the bean gets created, you could also do this through an ApplicationListener or by configuring Micronaut to do eager initialization of Singletons.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@benmoriceau benmoriceau temporarily deployed to more-secrets August 18, 2022 19:34 Inactive
@benmoriceau
Copy link
Contributor Author

I'm probably missing the helm chart in this PR.

Copy link
Contributor

@jdpgrailsdev jdpgrailsdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@benmoriceau benmoriceau temporarily deployed to more-secrets August 19, 2022 21:06 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets August 19, 2022 21:22 Inactive
@benmoriceau benmoriceau merged commit d800e3d into master Aug 19, 2022
@benmoriceau benmoriceau deleted the bmoric/self-healing-service branch August 19, 2022 21:29
rodireich pushed a commit that referenced this pull request Aug 25, 2022
* Add logger scheduled service

* Use eager bean initialization
@mozarik
Copy link

mozarik commented Nov 9, 2022

Hi just want to ask @benmoriceau why there is cron deployment. but in the helm charts there isnt

      volumes:
        - name: airbyte-volume-configs
          persistentVolumeClaim:
            claimName: airbyte-volume-configs

This caused this issue #16698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform kubernetes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants