OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Do not reschedule meeting on error, and add total limit
Oliver Günther969247e98d0f
diff --git a/modules/meeting/app/workers/recurring_meetings/init_next_occurrence_job.rb b/modules/meeting/app/workers/recurring_meetings/init_next_occurrence_job.rbindex 8d818cad011..8952756a7e4 100644--- a/modules/meeting/app/workers/recurring_meetings/init_next_occurrence_job.rb+++ b/modules/meeting/app/workers/recurring_meetings/init_next_occurrence_job.rb@@ -29,9 +29,10 @@module RecurringMeetingsclass InitNextOccurrenceJob < ApplicationJobinclude GoodJob::ActiveJobExtensions::Concurrency+ discard_on ActiveJob::DeserializationErrorgood_job_control_concurrency_with(- perform_limit: 1,+ total_limit: 1,key: -> { self.class.unique_key(arguments.first) })@@ -51,10 +52,11 @@ module RecurringMeetings# Schedule the next occurrence, if not instantiatedcheck_next_occurrence++ # Schedule the next job+ schedule_next_jobrescue StandardError => eRails.logger.error { "Error while initializing next occurrence for series ##{recurring_meeting}: #{e.message}" }- ensure- schedule_next_jobendprivate