customer-riverside/web/modules/custom/riverside_pt
Philip Peterson 1e3ba132a4 Suppress duplicate key errors on semaphore table during rebuilds
- In _riverside_pt_rebuild(): proactively TRUNCATE the semaphore table
  at the very start of every rebuild. This eliminates the common
  'duplicate key value violates unique constraint "semaphore____pkey"'
  errors for 'state:Drupal\Core\Cache\CacheCollector' and 'cron' that
  appear in postgres logs.

- In entrypoint.sh: add TRUNCATE semaphore at strategic points
  (right after site:install, before module enables, before/after
  riverside:rebuild, before final drush cr). Wrapped with || true
  so they never break the startup script.

- Added a note in CLAUDE.md under the rebuild section explaining
  the errors and the quick manual fix.

These are harmless (Drupal's DbLockBackend usually recovers) but
very noisy in the container logs during the default full rebuild
path.
2026-06-04 00:06:27 -07:00
..
config wip booking flow 2026-05-13 14:55:52 -07:00
css Use page routing 2026-06-04 00:05:52 -07:00
images Fixes 2026-05-28 00:07:02 -07:00
js Use page routing 2026-06-04 00:05:52 -07:00
src Create custom /contact page with details and appointment CTAs 2026-06-03 23:55:02 -07:00
templates Use page routing 2026-06-04 00:05:52 -07:00
.DS_Store wip 2026-05-25 00:32:23 -07:00
riverside_pt.info.yml Add declarative site module 2026-05-01 05:24:10 -07:00
riverside_pt.install Suppress duplicate key errors on semaphore table during rebuilds 2026-06-04 00:06:27 -07:00
riverside_pt.libraries.yml Create custom /contact page with details and appointment CTAs 2026-06-03 23:55:02 -07:00
riverside_pt.module Create custom /contact page with details and appointment CTAs 2026-06-03 23:55:02 -07:00
riverside_pt.routing.yml Create custom /contact page with details and appointment CTAs 2026-06-03 23:55:02 -07:00