Skip to content

Commit

Permalink
updates: new amazon_ses patch
Browse files Browse the repository at this point in the history
Refs: updates
  • Loading branch information
lazysoundsystem committed Jan 30, 2025
1 parent ccf1d8e commit 1db60ac
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 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']);
+ }
+}
2 changes: 1 addition & 1 deletion composer.patches.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"patches": {
"drupal/amazon_ses": {
"Cron fails on amazon_ses when not configured": "PATCHES/amazon_ses-3417090-cron-queue-14.patch"
"Cron fails on amazon_ses when not configured": "PATCHES/amazon_ses-cron-queue-3417090-8.patch"
},
"drupal/default_content" : {
"https://www.drupal.org/project/default_content/issues/2885285#comment-15342107": "https://www.drupal.org/files/issues/2023-12-01/i2885285-exporting-menu-link-2.patch"
Expand Down

0 comments on commit 1db60ac

Please sign in to comment.