Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates: new amazon_ses patch #518

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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