Skip to content

Commit

Permalink
fix: run the Freshdesk crawler each month (#113)
Browse files Browse the repository at this point in the history
Schedule the Freshdesk crawler to run on the first day of
each month.

Additionally, update the Freshdesk ETL job to run after the
crawler.
  • Loading branch information
patheard authored Jan 21, 2025
1 parent a00e796 commit 121efdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions terragrunt/aws/glue/crawlers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ resource "aws_glue_crawler" "platform_support_freshdesk_production" {
CreatePartitionIndex = true
Version = 1
})

schedule = "cron(00 6 1 * ? *)" # 6am UTC check for schema changes on the first day of each month
}

#
Expand Down
2 changes: 1 addition & 1 deletion terragrunt/aws/glue/etl.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ resource "aws_glue_job" "platform_support_freshdesk" {

resource "aws_glue_trigger" "platform_support_freshdesk" {
name = "Platform / Support / Freshdesk"
schedule = "cron(30 5 * * ? *)" # 5:30 UTC every day
schedule = "cron(00 7 * * ? *)" # 7am UTC every day
type = "SCHEDULED"

actions {
Expand Down

0 comments on commit 121efdd

Please sign in to comment.