Skip to content

Commit

Permalink
Merge pull request #351 from UN-OCHA/OPS-11278-weekly-updates
Browse files Browse the repository at this point in the history
updates: weekly updates
  • Loading branch information
lazysoundsystem authored Jan 28, 2025
2 parents d7bda75 + 49e16a7 commit 5220d64
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 102 deletions.
18 changes: 0 additions & 18 deletions PATCHES/amazon_ses-3417090-cron-queue-14.patch

This file was deleted.

23 changes: 23 additions & 0 deletions PATCHES/amazon_ses-cron-queue-3417090-8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/amazon_ses.module b/amazon_ses.module
new file mode 100644
index 0000000..b778644
--- /dev/null
+++ b/amazon_ses.module
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @file
+ * Hooks for the amazon_ses module.
+ */
+
+/**
+ * Implements hook_queue_info_alter().
+ */
+function amazon_ses_queue_info_alter(&$queues) {
+ $enabled = \Drupal::config('amazon_ses.settings')->get('queue');
+
+ if (!$enabled && isset($queues['amazon_ses_mail_queue']['cron'])) {
+ unset($queues['amazon_ses_mail_queue']['cron']);
+ }
+}
Loading

0 comments on commit 5220d64

Please sign in to comment.