Skip to content

Commit 3d1e236

Browse files
committed
Shows production service user can now map to pipeline prod cache bucket
1 parent e19a1d1 commit 3d1e236

File tree

1 file changed

+65
-33
lines changed

1 file changed

+65
-33
lines changed

lib/workload/components/event-workflowdraftrunstatechange-to-workflowrunstatechange-ready/lambdas/fill_placeholders_in_event_payload_data_py/fill_placeholders_in_event_payload_data.py

+65-33
Original file line numberDiff line numberDiff line change
@@ -243,35 +243,67 @@ def handler(event, context):
243243
# PRIMARY ANALYSIS TEST
244244
#########################
245245

246-
if __name__ == '__main__':
247-
import json
248-
249-
print(
250-
json.dumps(
251-
handler(
252-
{
253-
"portal_run_id": "20240530abcd1234",
254-
"workflow_name": "bsshFastqCopy",
255-
"workflow_version": "4.2.4",
256-
"event_data_inputs": {
257-
"instrumentRunId": "240229_7001234_1234_AHJLJLDS",
258-
},
259-
"engine_parameters": {
260-
"outputUri": "icav2://development/primary_data/__instrument_run_id__/__portal_run_id__/",
261-
"logsUri": "",
262-
"cacheUri": ""
263-
}
264-
},
265-
None
266-
),
267-
indent=2
268-
)
269-
)
270-
# {
271-
# "engine_parameters_updated": {
272-
# "outputUri": "s3://pipeline-dev-cache-503977275616-ap-southeast-2/primary_data/240229_7001234_1234_AHJLJLDS/20240530abcd1234/"
273-
# }
274-
# }
246+
## DEV
247+
# if __name__ == '__main__':
248+
# import json
249+
#
250+
# print(
251+
# json.dumps(
252+
# handler(
253+
# {
254+
# "portal_run_id": "20240530abcd1234",
255+
# "workflow_name": "bsshFastqCopy",
256+
# "workflow_version": "4.2.4",
257+
# "event_data_inputs": {
258+
# "instrumentRunId": "240229_7001234_1234_AHJLJLDS",
259+
# },
260+
# "engine_parameters": {
261+
# "outputUri": "icav2://development/primary_data/__instrument_run_id__/__portal_run_id__/",
262+
# "logsUri": "",
263+
# "cacheUri": ""
264+
# }
265+
# },
266+
# None
267+
# ),
268+
# indent=2
269+
# )
270+
# )
271+
# # {
272+
# # "engine_parameters_updated": {
273+
# # "outputUri": "s3://pipeline-dev-cache-503977275616-ap-southeast-2/byob-icav2/development/primary_data/240229_7001234_1234_AHJLJLDS/20240530abcd1234/"
274+
# # }
275+
# # }
276+
277+
## PROD
278+
# if __name__ == '__main__':
279+
# import json
280+
# print(
281+
# json.dumps(
282+
# handler(
283+
# {
284+
# "portal_run_id": "202409134661e8d7",
285+
# "workflow_version": "2024.05.24",
286+
# "workflow_name": "bsshFastqCopy",
287+
# "engine_parameters": {
288+
# "outputUri": "icav2://eba5c946-1677-441d-bbce-6a11baadecbb/primary/__instrument_run_id__/__portal_run_id__/"
289+
# },
290+
# "event_data_inputs": {
291+
# "bsshAnalysisId": "8569c8b4-83a7-46f9-bae1-c22025e86861",
292+
# "bsshProjectId": "9ec02c1f-53ba-47a5-854d-e6b53101adb7",
293+
# "instrumentRunId": "240424_A01052_0193_BH7JMMDRX5"
294+
# }
295+
# },
296+
# None
297+
# ),
298+
# indent=2
299+
# )
300+
# )
301+
#
302+
# {
303+
# "engine_parameters_updated": {
304+
# "outputUri": "s3://pipeline-prod-cache-503977275616-ap-southeast-2/byob-icav2/production/primary/240424_A01052_0193_BH7JMMDRX5/202409134661e8d7/"
305+
# }
306+
# }
275307

276308
# #########################
277309
# # SECONDARY ANALYSIS TEST
@@ -290,8 +322,8 @@ def handler(event, context):
290322
# "fastqListRows": ["foo", "bar"],
291323
# },
292324
# "engine_parameters": {
293-
# "outputUri": "icav2://7595e8f2-32d3-4c76-a324-c6a85dae87b5/analysis_data/__workflow_name__/__workflow_version__/__portal_run_id__/",
294-
# "logsUri": "icav2://7595e8f2-32d3-4c76-a324-c6a85dae87b5/analysis_logs/__workflow_name__/__workflow_version__/__portal_run_id__/",
325+
# "outputUri": "icav2://ea19a3f5-ec7c-4940-a474-c31cd91dbad4/analysis/__workflow_name__/__workflow_version__/__portal_run_id__/",
326+
# "logsUri": "icav2://ea19a3f5-ec7c-4940-a474-c31cd91dbad4/analysis/__workflow_name__/__workflow_version__/__portal_run_id__/",
295327
# }
296328
# },
297329
# None
@@ -302,7 +334,7 @@ def handler(event, context):
302334
#
303335
# # {
304336
# # "engine_parameters_updated": {
305-
# # "outputUri": "icav2://7595e8f2-32d3-4c76-a324-c6a85dae87b5/analysis_data/cttsov2/2-1-1/20240530abcd1234/",
306-
# # "logsUri": "icav2://7595e8f2-32d3-4c76-a324-c6a85dae87b5/analysis_logs/cttsov2/2-1-1/20240530abcd1234/"
337+
# # "outputUri": "s3://pipeline-dev-cache-503977275616-ap-southeast-2/byob-icav2/development/analysis/cttsov2/2-1-1/20240530abcd1234/",
338+
# # "logsUri": "s3://pipeline-dev-cache-503977275616-ap-southeast-2/byob-icav2/development/analysis/cttsov2/2-1-1/20240530abcd1234/"
307339
# # }
308340
# # }

0 commit comments

Comments
 (0)