weather-gov / weather.gov

weather.gov 2.0
Other
331 stars 10 forks source link

Re-run Drupal cron (scheduled) tasks on our environments #1905

Open jamestranovich-noaa opened 1 month ago

jamestranovich-noaa commented 1 month ago

Description

Our general structure for Drupal-on-cloud.gov comes from this repository which is not updated anymore. Specifically we have a cronish.sh script borrowed from that repository that is supposed to be run as a cloud.gov task but it has been disabled (for all environments) since late 2023.

Drupal's cron in this case is a scheduler that handles upkeep (optimizing the database, clearing the cache, etc) and invokes per-module cron calls (so that modules themselves can do periodic upkeep as well). For an overview, see this Drupal cron documentation.

There's a few problems here:

A list of cron tasks that are currently run (not all of these do anything every time):

I propose that we re-enable cronish for all environments and/or enable NR or equivalent logging when we do so.

Acceptance criteria

colinmurphy01 commented 1 month ago

Can you hit me with a priority assessment?

jamestranovich-noaa commented 1 month ago

I'll defer to @eric-gade but I think this is low. That is, this feature would be nice to have, but by no means essential. That might change, however, if we have an uptick in beta.weather.gov usage.