Skip to content

Should we use CronJob instead of Deployments for sync scripts? #569

Discussion options

You must be logged in to vote

@aodj this is an interesting idea, but please realize that sync-connections, sync-pools, sync-users, sync-variables are constantly reverting any changes people make using the Airflow UI, which has the benefit of forcing you to be declarative with your connections/pools/users/variables (and not discover weeks later during your next helm upgrade that someone has updated a connection's password but not updated the values for it).

I worry that including lots of CronJobs is worse for a few reasons:

  1. Updates to Secret/ConfigMap referenced in airflow.connectionsTemplates won't be updated as quickly (right now we do this every 10 seconds!)
  2. with very frequent schedules (like every 60s) lots of tim…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thesuperzapper
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #540 on April 28, 2022 15:33.