Skip to content

a8n: Fix PublicationEnqueued by loading all ChangesetJobs for a Campaign

Warren Gifford requested to merge a8n/fix-publication-enqueued into master

Created by: mrnugget

This fixes #8402 (closed) by loading all ChangesetJobs for a given Campaign/CampaignPlan to determine whether a CampaignJob has a ChangesetJob.

Before this change, the campaignJobsConnectionController would only include the CampaignJobs that didn't have a successfully processed ChangesetJob yet.

While publishing a Campaign that number, len(r.jobs), would go down.

Which in turn means that we would look at a smaller and smaller subset of ChangesetJobs to determine whether the CampaignJobs we did load have a ChangesetJob.

Merge request reports

Loading