Skip to content

Commit dc838ad

Browse files
committed
TASK: improve documentation for pipelines template
1 parent 8cbbe38 commit dc838ad

2 files changed

Lines changed: 68 additions & 54 deletions

File tree

Configuration/Settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Flowpack:
99
database: 11
1010

1111
# How many content releases to keep before cleaning them up.
12+
#
13+
# NOTE: the log-retention count is not configured here, but in prunner (see `pipelines.yml`, underneath
14+
# pipelines.do_content_release.retention_count and pipelines.manually_transfer_content_release.retention_count).
1215
contentReleaseRetentionCount: 20
1316

1417
# you can add additional, arbitrarily named, content stores here - they appear in the UI.

pipelines_template.yml

Lines changed: 65 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ pipelines:
1717
queue_limit: 1
1818
queue_strategy: replace
1919

20-
# we want to keep the last 10 releases. You can adjust this to a setting which makes sense
21-
# for your project.
20+
# we want to keep the last 10 release's logs. You can adjust this to a setting which makes sense
21+
# for your project. NOTE: to configure the retention period for the releases *themselves*,
22+
# see Settings.yaml, path "Flowpack.DecoupledContentStore.redisContentStores.*.contentReleaseRetentionCount".
2223
#
2324
# Alternatively, you can specify a timespan in hours using `retention_period_hours`:
2425
# retention_period_hours: 72
@@ -200,56 +201,66 @@ pipelines:
200201
# from the primary content store to any other content store
201202
# ARG: contentReleaseId, redisInstanceId
202203
manually_transfer_content_release:
204+
# just to be safe, we want to run manual transfers one-by-one (without concurrency)
205+
concurrency: 1
206+
207+
# we want to keep the last 10 manual transfer's logs. You can adjust this to a setting which makes sense
208+
# for your project. NOTE: to configure the retention period for the releases *themselves*,
209+
# see Settings.yaml, path "Flowpack.DecoupledContentStore.redisContentStores.*.contentReleaseRetentionCount".
210+
#
211+
# Alternatively, you can specify a timespan in hours using `retention_period_hours`:
212+
# retention_period_hours: 72
213+
retention_count: 10
214+
215+
tasks:
216+
################################################################################
217+
# 0) PREPARE
218+
################################################################################
219+
prepare_finished:
220+
script:
221+
- ./flow contentReleasePrepare:createContentRelease {{ .contentReleaseId }} {{ .__jobID }}
222+
223+
################################################################################
224+
# 3) VALIDATION
225+
################################################################################
226+
validate_content:
227+
script:
228+
- ./flow contentReleaseValidation:validate {{ .contentReleaseId }}
229+
depends_on: [ render_finished ]
230+
231+
validate_finished:
232+
script:
233+
- ./flow contentReleaseValidation:ensureNoValidationErrorsExist {{ .contentReleaseId }}
234+
depends_on:
235+
- validate_content
236+
237+
################################################################################
238+
# 4) TRANSFER
239+
################################################################################
240+
transfer_content:
241+
script: [""]
242+
depends_on: [validate_finished]
243+
244+
transfer_resources:
245+
script: [""]
203246

204-
tasks:
205-
################################################################################
206-
# 0) PREPARE
207-
################################################################################
208-
prepare_finished:
209-
script:
210-
- ./flow contentReleasePrepare:createContentRelease {{ .contentReleaseId }} {{ .__jobID }}
211-
212-
################################################################################
213-
# 3) VALIDATION
214-
################################################################################
215-
validate_content:
216-
script:
217-
- ./flow contentReleaseValidation:validate {{ .contentReleaseId }}
218-
depends_on: [ render_finished ]
219-
220-
validate_finished:
221-
script:
222-
- ./flow contentReleaseValidation:ensureNoValidationErrorsExist {{ .contentReleaseId }}
223-
depends_on:
224-
- validate_content
225-
226-
################################################################################
227-
# 4) TRANSFER
228-
################################################################################
229-
transfer_content:
230-
script:
231-
depends_on: [validate_finished]
232-
233-
transfer_resources:
234-
script:
235-
236-
transfer_finished:
237-
script:
238-
- ./flow contentReleaseTransfer:removeOldReleases {{ .redisInstanceId }} {{ .contentReleaseId }}
239-
depends_on:
240-
- transfer_content
241-
- transfer_resources
242-
243-
################################################################################
244-
# 5) SWITCH
245-
################################################################################
246-
switch_target:
247-
script:
248-
- ./flow contentReleaseSwitch:switchActiveContentRelease {{ .redisInstanceId }} {{ .contentReleaseId }}
249-
depends_on:
250-
- transfer_finished
251-
252-
switch_finished:
253-
script: [""]
254-
depends_on:
255-
- switch_target
247+
transfer_finished:
248+
script:
249+
- ./flow contentReleaseTransfer:removeOldReleases {{ .redisInstanceId }} {{ .contentReleaseId }}
250+
depends_on:
251+
- transfer_content
252+
- transfer_resources
253+
254+
################################################################################
255+
# 5) SWITCH
256+
################################################################################
257+
switch_target:
258+
script:
259+
- ./flow contentReleaseSwitch:switchActiveContentRelease {{ .redisInstanceId }} {{ .contentReleaseId }}
260+
depends_on:
261+
- transfer_finished
262+
263+
switch_finished:
264+
script: [""]
265+
depends_on:
266+
- switch_target

0 commit comments

Comments
 (0)