Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling of deployment cancellation #270

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

istalker2
Copy link
Contributor

@istalker2 istalker2 commented May 26, 2017

  • stopChan is now passed to the graph finalizers so that deployment can be canceled on the final stages
  • never write to stopChan. The only correct way to cancel deployment is to close the channel
  • pass nil instead of real chanel for unit tests that do not cancel deployment

This change is Reviewable

Stan Lagun added 3 commits June 13, 2017 16:10
This change adds ability to replicate dependency with index parameters
iterated over arbitrary number of lists.

For each dependency it is now possible to specify map of
indexVariableName -> listExpression

listExpression := range|item + [, listExpression]
range := number '..' number
item := STRING

for example, if for "i: 1..3" the dependency will be replicated into 3
clones, each one of them having argument i set to value in range [1, 3]

This also allows to consume N flow replicas by replicating the
dependency that leads to the consumed flow
For sequential flow, each next replica is attached to the leafs
of previous one so that they will be deployed sequentially
* stopChan is now passed to the graph finalizers so that deployment
  can be canceled on the final stages
* never write to stopChan. The only correct way to cancel deployment is
  to close the channel
* pass nil instead of real chanel for unit tests that do not cancel
  deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant