Skip to content

Create aws_cloudwatch_event_rule and aws_cloudwatch_event_target that runs event:reindex_touched_dois on events container once per day#296

Open
codycooperross wants to merge 1 commit intomasterfrom
event-task
Open

Create aws_cloudwatch_event_rule and aws_cloudwatch_event_target that runs event:reindex_touched_dois on events container once per day#296
codycooperross wants to merge 1 commit intomasterfrom
event-task

Conversation

@codycooperross
Copy link
Contributor

Purpose

This PR adds an aws_cloudwatch_event_rule and an aws_cloudwatch_event_target that runs event:reindex_touched_dois on an events container once per day. Terraform config is borrowed from examples like the following:

https://github.com/search?q=aws_cloudwatch_event_rule+bundle+exec+rake&type=code

Expected result: once per day, according to the cron schedule_expression, an events task is booted up and bundle exec rake event:reindex_touched_dois is run. This queues reindexing for DOIs touched by relevant events in the previous day. The task is retired once the rake task completes.

See these PRs for relevant events work:

closes: Add github issue that originated this PR

Approach

Open Questions and Pre-Merge TODOs

Learning

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

Reviewer, please remember our guidelines:

  • Be humble in the language and feedback you give, ask don't tell.
  • Consider using positive language as opposed to neutral when offering feedback. This is to avoid the negative bias that can occur with neutral language appearing negative.
  • Offer suggestions on how to improve code e.g. simplification or expanding clarity.
  • Ensure you give reasons for the changes you are proposing.

… runs event:reindex_touched_dois on events container once per day
@wendelfabianchinsamy
Copy link
Contributor

This is super clever by the way! I learned something new 😄.

@codycooperross codycooperross requested a review from a team March 18, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants