stephenknilans:\n
\n\n\nHow can we change Pipeline parameters through snaplogic(programmatically) , or the environment instance?
\n
The problem with changing pipeline parameters during an execution is that it makes it really easy to introduce unpredictable results. For example, if Snap A references a parameter that is changed by Snap B, the value of the parameter read by A would be completely unpredictable since all of the Snaps are running in parallel. In other words, the value of the parameter read by Snap A might be “foo” for the first 20 docs in one run and then “bar” after that. But, if the pipeline was run again with the same inputs, the parameter might be “foo” for the first 10 docs instead of the first 20. So, to avoid these race conditions, parameters are treated as static.
\nIf you need to change a parameter for a subsection of a pipeline, you can move that subsection into a child pipeline and call it with Pipeline Execute, setting the parameters as needed.
\n\nAre you calling the task from another pipeline in this case? Is there a reason the Pipeline Execute snap does not work for you?
","body@stringLength":"1966","rawBody":"\nThe problem with changing pipeline parameters during an execution is that it makes it really easy to introduce unpredictable results. For example, if Snap A references a parameter that is changed by Snap B, the value of the parameter read by A would be completely unpredictable since all of the Snaps are running in parallel. In other words, the value of the parameter read by Snap A might be “foo” for the first 20 docs in one run and then “bar” after that. But, if the pipeline was run again with the same inputs, the parameter might be “foo” for the first 10 docs instead of the first 20. So, to avoid these race conditions, parameters are treated as static.
\nIf you need to change a parameter for a subsection of a pipeline, you can move that subsection into a child pipeline and call it with Pipeline Execute, setting the parameters as needed.
\n\nAre you calling the task from another pipeline in this case? Is there a reason the Pipeline Execute snap does not work for you?
","author":{"__ref":"User:user:100"},"isEscalated":null,"postTime":"2018-01-25T10:14:28.110-08:00","solution":false,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"repliesCount":2},"Revision:revision:15453_1":{"__typename":"Revision","id":"revision:15453_1","lastEditTime":"2018-01-26T04:29:55.593-08:00"},"QueryVariables:ReplyList:message:15453:1":{"__typename":"QueryVariables","id":"ReplyList:message:15453:1","value":{"id":"message:15453","first":10,"sorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"repliesFirst":3,"repliesFirstDepthThree":1,"repliesSorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":true,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":false,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"ROOT_MUTATION":{"__typename":"Mutation"},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1755250098417":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1755250098417","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1755250098417":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1755250098417","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/common/ExternalLinkWarningModal-1755250098417":{"__typename":"CachedAsset","id":"text:en_US-components/common/ExternalLinkWarningModal-1755250098417","value":{"title":"Leaving the Community","description":"You're about to leave this site and navigate to an external domain. Are you sure you want to continue?","action.submit":"Continue","action.cancel":"Go Back"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1755250098417":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1755250098417","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-components/messages/ThreadedReplyList-1755250098417":{"__typename":"CachedAsset","id":"text:en_US-components/messages/ThreadedReplyList-1755250098417","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"pipelines","messageSubject":"updating-pipeline-parameters","messageId":"15448","replyId":"15453"},"buildId":"tzrZqX6Puz2ajpVr66RMN","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","surveysEnabled":true,"openTelemetry":{"clientEnabled":false,"configName":"snaplogic","serviceVersion":"25.4.0","universe":"prod","collector":"http://localhost:4318","logLevel":"error","routeChangeAllowedTime":"5000","headers":"","enableDiagnostic":"false","maxAttributeValueLength":"4095"},"apolloDevToolsEnabled":false,"quiltLazyLoadThreshold":"3"},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["components_seo_QAPageSchema","components_community_Navbar_NavbarWidget","components_community_Breadcrumb_BreadcrumbWidget","components_messages_TopicWithThreadedReplyListWidget","components_messages_MessageListForNodeByRecentActivityWidget","components_customComponent_CustomComponent","components_community_FooterWidget","components_messages_MessageView_MessageViewStandard","components_external_components_ExternalComponent","components_community_FooterWidgetHelpLink","components_community_KhorosLogo","components_messages_EscalatedMessageBanner","shared_client_components_common_List_ListGroup","components_messages_MessageView","components_messages_MessageView_MessageViewInline","shared_client_components_common_Pager_PagerLoadMore","components_customComponent_CustomComponentContent_TemplateContent"],"appGip":true,"scriptLoader":[]}