Skip to content

Commit 39b7520

Browse files
authored
Merge pull request #8 from Flowpack/add-current-release-identifier-to-full-content-release
TASK: pass current content release id also when starting a full content release
2 parents cf3a16f + 76018e6 commit 39b7520

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Classes/ContentReleaseManager.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ public function startIncrementalContentRelease()
4848

4949
public function startFullContentRelease()
5050
{
51+
$redis = $this->redisClientManager->getPrimaryRedis();
52+
$currentContentReleaseId = $redis->get(self::REDIS_CURRENT_RELEASE_KEY);
53+
5154
$this->contentCache->flush();
52-
$this->prunnerApiService->schedulePipeline(PipelineName::create('do_content_release'), ['contentReleaseId' => (string)time(), 'currentContentReleaseId' => self::NO_PREVIOUS_RELEASE]);
55+
$this->prunnerApiService->schedulePipeline(PipelineName::create('do_content_release'), ['contentReleaseId' => (string)time(), 'currentContentReleaseId' => $currentContentReleaseId ?: self::NO_PREVIOUS_RELEASE]);
5356
}
5457

5558
public function cancelAllRunningContentReleases()

0 commit comments

Comments
 (0)