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

Added example for limiting workflow concurrency in .NET fan-in/out example #3986

Closed
Closed
Changes from 3 commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
cc3d110
Merge pull request #3910 from JoshVanL/preview-feature-component-hot-…
hhunter-ms Jan 11, 2024
3a676db
Apply suggestions from code review
elena-kolevska Jan 12, 2024
ae4e137
Feature/add-kafka-pubsub-schema-registry (#3946)
passuied Jan 12, 2024
b0dafe0
fix formatting (#3950)
passuied Jan 12, 2024
de0f222
Merge branch 'v1.13' into error-codes
msfussell Jan 22, 2024
d71bd4b
Apply suggestions from code review
elena-kolevska Jan 23, 2024
e16d22f
Small fixes after review
elena-kolevska Jan 23, 2024
63858ae
Small update
elena-kolevska Jan 25, 2024
11ab77a
update howtos and patterns
hhunter-ms Jan 25, 2024
cb78f17
add link to js sdk
hhunter-ms Jan 25, 2024
cbe1276
Merge branch 'issue_3869' of https://github.com/hhunter-ms/docs into …
hhunter-ms Jan 25, 2024
216679b
Merge branch 'v1.13' into issue_3869
hhunter-ms Jan 25, 2024
fd58074
fix localized link
hhunter-ms Jan 25, 2024
b66db73
Merge branch 'issue_3869' of https://github.com/hhunter-ms/docs into …
hhunter-ms Jan 25, 2024
29fc98b
Add related links
elena-kolevska Jan 25, 2024
e344601
Merge pull request #3908 from elena-kolevska/error-codes
hhunter-ms Jan 26, 2024
5027a74
tweak for limitations
hhunter-ms Jan 26, 2024
c2b7342
Merge branch 'v1.13' into issue_3868
hhunter-ms Jan 26, 2024
0fcbd0a
upmerge
hhunter-ms Jan 26, 2024
72e139d
Merge pull request #3976 from hhunter-ms/upmerge_01-26c
hhunter-ms Jan 26, 2024
9ab5a8b
prep 1.13 for release
hhunter-ms Jan 26, 2024
fab5b19
Update limitation for js
kaibocai Jan 27, 2024
da0fd19
Update workflow-features-concepts.md
kaibocai Jan 27, 2024
af916d6
add monitor pattern
hhunter-ms Jan 29, 2024
89ca6dd
Merge branch 'v1.13' into issue_3869
hhunter-ms Jan 29, 2024
3407121
Added example for limiting workflow concurrency in .NET
WhitWaldo Jan 30, 2024
557e7b9
Added missing close tab markup and surrounding tabs
WhitWaldo Jan 30, 2024
63c6c3f
Merge branch 'v1.12' into limit-workflow-concurrency-dotnet
hhunter-ms Jan 30, 2024
f949c5a
Update daprdocs/content/en/developing-applications/building-blocks/wo…
kaibocai Jan 31, 2024
d3af22a
update diagrams for middleware
hhunter-ms Jan 31, 2024
017bb62
[1.13] Add docs for SQLite name resolver
ItalyPaleAle Jan 31, 2024
4764458
add kafka aws iam to docs
famarting Jan 31, 2024
93d2bf6
Merge branch 'v1.13' into patch-2
hhunter-ms Jan 31, 2024
f268845
Apply suggestions from code review
ItalyPaleAle Jan 31, 2024
59ed30e
Merge pull request #3982 from kaibocai/patch-2
hhunter-ms Jan 31, 2024
0ff861c
Merge branch 'v1.13' into issue_3869
hhunter-ms Jan 31, 2024
e1d36a3
Update docs for low-cardinality metrics
ItalyPaleAle Jan 31, 2024
e01c390
Merge branch 'v1.13' into sqlite-nr
msfussell Jan 31, 2024
394b3db
Update daprdocs/content/en/reference/components-reference/supported-n…
ItalyPaleAle Feb 1, 2024
c462418
[1.13] Azure Blob Storage v2 docs
ItalyPaleAle Feb 1, 2024
2419ef9
Merge branch 'v1.13' into kafka-aws-iam
msfussell Feb 1, 2024
d856339
Update daprdocs/content/en/operations/observability/metrics/metrics-o…
ItalyPaleAle Feb 1, 2024
701cefa
Apply suggestions from code review
ItalyPaleAle Feb 1, 2024
d9187d8
Updated configuration-schema
ItalyPaleAle Feb 1, 2024
6d9e277
Merge branch 'v1.13' into metrics-cardinality
ItalyPaleAle Feb 1, 2024
4b69580
[1.13] Document actor services flags
ItalyPaleAle Feb 1, 2024
1934dca
update go snippets
hhunter-ms Feb 1, 2024
9218028
Merge branch 'issue_3868' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 1, 2024
6f67dc9
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 1, 2024
e49c436
add quickstart
hhunter-ms Feb 1, 2024
4fefea7
Merge branch 'issue_3868' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 1, 2024
7dea32b
Adding recursive terminate/purge in workflow API (#3969)
shivamkm07 Feb 1, 2024
b2cbc2d
Update daprdocs/content/en/reference/components-reference/supported-p…
msfussell Feb 1, 2024
74fcb49
Update daprdocs/content/en/reference/components-reference/supported-p…
msfussell Feb 1, 2024
48e2f46
Update daprdocs/content/en/reference/components-reference/supported-p…
msfussell Feb 1, 2024
7a6f384
Update daprdocs/content/en/reference/components-reference/supported-p…
msfussell Feb 1, 2024
33c57ff
Merge branch 'v1.13' into kafka-aws-iam
msfussell Feb 1, 2024
80de6e0
Merge pull request #3992 from famarting/kafka-aws-iam
hhunter-ms Feb 2, 2024
7419cd3
Merge branch 'v1.13' into metrics-cardinality
hhunter-ms Feb 2, 2024
d6e0a8b
Merge branch 'v1.13' into sqlite-nr
ItalyPaleAle Feb 2, 2024
621c5ff
Update daprdocs/content/en/operations/observability/metrics/metrics-o…
msfussell Feb 2, 2024
52f1705
Merge pull request #3995 from ItalyPaleAle/metrics-cardinality
hhunter-ms Feb 2, 2024
3d303ec
Update daprdocs/content/en/reference/components-reference/supported-n…
ItalyPaleAle Feb 2, 2024
9db5173
Update daprdocs/content/en/reference/components-reference/supported-n…
msfussell Feb 2, 2024
ca3b627
Update daprdocs/content/en/reference/components-reference/supported-n…
msfussell Feb 2, 2024
a360f65
Update nr-sqlite.md
msfussell Feb 2, 2024
82e72d0
Update daprdocs/content/en/reference/components-reference/supported-n…
msfussell Feb 2, 2024
91b0f3a
Merge branch 'v1.13' into sqlite-nr
hhunter-ms Feb 2, 2024
8e32a28
Apply suggestions from code review
ItalyPaleAle Feb 2, 2024
c6aca39
Merge pull request #3991 from ItalyPaleAle/sqlite-nr
hhunter-ms Feb 2, 2024
c6a65c6
Merge branch 'v1.13' into issue_3869
hhunter-ms Feb 2, 2024
9a92b51
Merge branch 'v1.13' into actors-services
ItalyPaleAle Feb 2, 2024
a45e25f
add supported SDKs
hhunter-ms Feb 2, 2024
a63d328
add name resolution to config overview and schema
hhunter-ms Feb 2, 2024
330be0a
update titles, add links, update service invo overview
hhunter-ms Feb 2, 2024
525baca
Update daprdocs/content/en/reference/components-reference/supported-s…
ItalyPaleAle Feb 5, 2024
98dca03
mark edit
hhunter-ms Feb 5, 2024
7f45c9a
Merge branch 'issue_3869' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 5, 2024
0f50934
mike initial review
hhunter-ms Feb 5, 2024
664cff1
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 5, 2024
6efa709
remove older versions
hhunter-ms Feb 5, 2024
47d7e67
Merge branch 'v1.13' into azure-blob-v2
msfussell Feb 5, 2024
90d7be8
Update daprdocs/content/en/reference/components-reference/supported-s…
ItalyPaleAle Feb 5, 2024
3018bad
add js limitation
hhunter-ms Feb 5, 2024
fdd4cbf
Sentry Token Validator spec
JoshVanL Feb 6, 2024
5202af1
[1.13] Docs for PostgreSQL v2 state store (#3996)
ItalyPaleAle Feb 6, 2024
ac83ec9
Merge branch 'v1.13' into azure-blob-v2
hhunter-ms Feb 6, 2024
568a283
Merge pull request #3997 from ItalyPaleAle/azure-blob-v2
hhunter-ms Feb 6, 2024
2961bc4
mark review
hhunter-ms Feb 6, 2024
9b22782
Merge branch 'v1.13' into issue_4005
hhunter-ms Feb 6, 2024
87bfa45
forgot one
hhunter-ms Feb 6, 2024
3f79553
Merge branch 'issue_4005' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 6, 2024
e5c8721
Merge pull request #4007 from hhunter-ms/issue_4005
hhunter-ms Feb 6, 2024
df7600f
Merge branch 'v1.13' into 1.13_versions_navbar
hhunter-ms Feb 6, 2024
cc5095b
remove nats streaming
hhunter-ms Feb 6, 2024
15e69a5
Merge pull request #4010 from hhunter-ms/1.13_versions_navbar
hhunter-ms Feb 6, 2024
cd3f337
Merge branch 'v1.13' into issue_3998
hhunter-ms Feb 6, 2024
7c09f2c
Merge pull request #4019 from hhunter-ms/issue_3998
hhunter-ms Feb 6, 2024
552e12b
Merge branch 'v1.13' into actors-services
hhunter-ms Feb 6, 2024
5749b2e
Merge branch 'v1.13' into issue_3869
hhunter-ms Feb 6, 2024
f439ffc
Merge pull request #3896 from hhunter-ms/issue_3869
hhunter-ms Feb 7, 2024
1bab32e
Add workflow backend documentation
ASHIQUEMD Feb 8, 2024
45b01ec
Adds review comments
JoshVanL Feb 8, 2024
bd75fa6
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 9, 2024
86acb41
Merge branch 'v1.13' into actors-services
msfussell Feb 9, 2024
8fcb6c2
Merge branch 'v1.13' into sentry-token-validator
msfussell Feb 9, 2024
649e91f
Workflow terminate/purge: remove `non_recursive` query option (#4008)
JoshVanL Feb 9, 2024
8dddbc2
Merge branch 'v1.13' into actors-services
msfussell Feb 9, 2024
bcd02b4
Merge branch 'v1.13' into sentry-token-validator
hhunter-ms Feb 9, 2024
f33a9b7
Merge pull request #4017 from JoshVanL/sentry-token-validator
hhunter-ms Feb 9, 2024
47dc838
Merge branch 'v1.13' into actors-services
hhunter-ms Feb 9, 2024
750288c
Merge pull request #4002 from ItalyPaleAle/actors-services
hhunter-ms Feb 9, 2024
918fe00
Merge branch 'v1.13' into wfbackend-docs
hhunter-ms Feb 9, 2024
d2ec174
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 9, 2024
90bbf6f
Clarify managed identities doc (#4024)
hhunter-ms Feb 14, 2024
96b1b8c
Update daprdocs/content/en/developing-applications/building-blocks/wo…
ASHIQUEMD Feb 14, 2024
4cdb9be
Update daprdocs/content/en/developing-applications/building-blocks/wo…
ASHIQUEMD Feb 14, 2024
b51a4bd
Update daprdocs/content/en/developing-applications/building-blocks/wo…
ASHIQUEMD Feb 14, 2024
c71131d
Update daprdocs/content/en/developing-applications/building-blocks/wo…
ASHIQUEMD Feb 14, 2024
12ec4ef
Update daprdocs/content/en/reference/components-reference/supported-w…
ASHIQUEMD Feb 14, 2024
892ad75
Merge branch 'v1.13' into wfbackend-docs
ASHIQUEMD Feb 14, 2024
8ad5927
Update daprdocs/content/en/reference/components-reference/supported-w…
ASHIQUEMD Feb 14, 2024
2d5d8e1
Add workflow backend documentation
ASHIQUEMD Feb 14, 2024
c5ee281
update quickstart, start updating patterns
hhunter-ms Feb 14, 2024
c3a2b69
merge conflict
hhunter-ms Feb 14, 2024
04f6a22
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 14, 2024
6d9a344
add more pattern examples
hhunter-ms Feb 14, 2024
233c4f3
Merge branch 'issue_3868' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 14, 2024
ae90b50
Update daprdocs/content/en/developing-applications/building-blocks/wo…
msfussell Feb 14, 2024
020324e
Merge pull request #4028 from ASHIQUEMD/wfbackend-docs
hhunter-ms Feb 14, 2024
1e00080
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 15, 2024
8204495
add fan in/fan out
hhunter-ms Feb 16, 2024
e7a16cb
Merge branch 'issue_3868' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 16, 2024
8d356c3
clarify support in the docs for cosmosdb
hhunter-ms Feb 16, 2024
101505a
Hot reloading: add notes about the behaviour and exceptions (#4027)
JoshVanL Feb 17, 2024
dccae02
Added example for retrieving bulk deserialized items matching PR #117…
WhitWaldo Oct 23, 2023
047e71c
Update daprdocs/content/en/developing-applications/building-blocks/st…
WhitWaldo Oct 24, 2023
d9cbcba
Update daprdocs/content/en/developing-applications/building-blocks/wo…
hhunter-ms Feb 20, 2024
66b8bdd
Merge branch 'v1.13' into issue_3868
hhunter-ms Feb 20, 2024
e36ecc1
Update daprdocs/content/en/developing-applications/building-blocks/wo…
hhunter-ms Feb 20, 2024
b9a8038
updates per mark and marc
hhunter-ms Feb 20, 2024
43dd7f7
Merge branch 'issue_3868' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 20, 2024
529ac3f
Merge branch 'v1.13' into issue_3962
hhunter-ms Feb 20, 2024
3c6c961
Update daprdocs/content/en/developing-applications/building-blocks/wo…
hhunter-ms Feb 20, 2024
19d4975
Merge pull request #3895 from hhunter-ms/issue_3868
hhunter-ms Feb 20, 2024
7f0ec01
Merge branch 'v1.13' into bulk-retrieval-deserialization
hhunter-ms Feb 21, 2024
e2ee6eb
remove explicit callout for cosmosdb
hhunter-ms Feb 21, 2024
52dfcfb
Merge branch 'issue_3962' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 21, 2024
8ccc3df
Merge pull request #3843 from WhitWaldo/bulk-retrieval-deserialization
hhunter-ms Feb 21, 2024
f4f08ad
Merge branch 'v1.13' into issue_3962
hhunter-ms Feb 21, 2024
42fdb2b
initial add, need to create diagram to replace placeholder
hhunter-ms Feb 21, 2024
9a5172f
Merge branch 'v1.13' into issue_3704
hhunter-ms Feb 21, 2024
724fac9
Update daprdocs/content/en/operations/components/certification-lifecy…
hhunter-ms Feb 22, 2024
8de8035
Update daprdocs/content/en/operations/components/certification-lifecy…
hhunter-ms Feb 22, 2024
5693896
SDK forward and backward compatibility (#4036)
hhunter-ms Feb 22, 2024
156e663
Merge branch 'v1.13' into issue_3962
hhunter-ms Feb 22, 2024
2fb2ed3
update diagram
hhunter-ms Feb 22, 2024
86dfaa6
Merge branch 'issue_3704' of https://github.com/hhunter-ms/docs into …
hhunter-ms Feb 22, 2024
8630af9
Merge pull request #4035 from hhunter-ms/issue_3962
hhunter-ms Feb 23, 2024
4abce50
add diagram
hhunter-ms Feb 26, 2024
e6cc7fe
Merge branch 'v1.13' into issue_3704
hhunter-ms Feb 28, 2024
464d3c7
add go limitions
mikeee Feb 29, 2024
03be8cb
Merge branch 'v1.13' into wf-docs
mikeee Feb 29, 2024
a4dfdaf
[Workflow] JS quickstart docs (#4034)
hhunter-ms Feb 29, 2024
23b530c
Update sidecar-health.md
msfussell Feb 29, 2024
3f24031
Update health_api.md
msfussell Feb 29, 2024
633b052
Merge branch 'v1.13' into issue_3704
hhunter-ms Feb 29, 2024
8aecd50
Merge branch 'v1.13' into wf-docs
mikeee Feb 29, 2024
06e114e
Added errorIfNot2XX option to HTTP binding docs (#3741) (#4056)
artursouza Mar 1, 2024
bb41c4a
Merge branch 'v1.13' into wf-docs
mikeee Mar 1, 2024
103ea58
updates per mark
hhunter-ms Mar 1, 2024
e5f9dc0
Merge branch 'issue_3704' of https://github.com/hhunter-ms/docs into …
hhunter-ms Mar 1, 2024
e176899
edit and add cross-linking
hhunter-ms Mar 1, 2024
25739a0
Merge branch 'v1.13' into issue_3704
hhunter-ms Mar 1, 2024
658f3a3
add maxConcurrentHandlers to Pulsar (#4057)
yaron2 Mar 1, 2024
6135b88
Merge branch 'v1.13' into wf-docs
hhunter-ms Mar 1, 2024
0122d1f
Add reminders protobuf section (#4058)
yaron2 Mar 1, 2024
f3785cb
add external interaction recommendation
mikeee Mar 1, 2024
a0d3b23
Merge branch 'v1.13' into wf-docs
mikeee Mar 1, 2024
cf4a0c2
Merge branch 'v1.13' into issue_3704
msfussell Mar 1, 2024
19d807b
Merge pull request #4052 from mikeee/wf-docs
hhunter-ms Mar 4, 2024
d948964
mark review
hhunter-ms Mar 4, 2024
d5dde4d
Merge branch 'issue_3704' of https://github.com/hhunter-ms/docs into …
hhunter-ms Mar 4, 2024
735029f
Merge branch 'v1.13' into issue_3704
hhunter-ms Mar 4, 2024
4cf019b
resolve conflicts
hhunter-ms Mar 4, 2024
35de261
python
hhunter-ms Mar 4, 2024
b35712a
java
hhunter-ms Mar 4, 2024
51ffa81
dotnet
hhunter-ms Mar 4, 2024
c9f557f
js
hhunter-ms Mar 4, 2024
0f247bc
go
hhunter-ms Mar 4, 2024
f0df156
update with more slides
hhunter-ms Mar 4, 2024
22bfd47
Merge branch 'v1.13' into issue_3965_diagrams
hhunter-ms Mar 4, 2024
c04f63e
Merge pull request #4065 from hhunter-ms/submodules_03-04
hhunter-ms Mar 4, 2024
fbd1595
Merge branch 'v1.13' into upmerge_03-04
hhunter-ms Mar 4, 2024
f28113c
Merge pull request #4064 from hhunter-ms/upmerge_03-04
hhunter-ms Mar 4, 2024
7b51461
Merge branch 'v1.13' into issue_3965_diagrams
hhunter-ms Mar 4, 2024
9c5c8ba
Merge pull request #3988 from hhunter-ms/issue_3965_diagrams
hhunter-ms Mar 4, 2024
c1a840a
Merge branch 'v1.13' into issue_3704
hhunter-ms Mar 4, 2024
941a664
Metric Cardinality: fix example setting increased cardinality. (#4062)
JoshVanL Mar 4, 2024
50fa51a
Merge branch 'v1.13' into issue_3704
msfussell Mar 4, 2024
e4c904b
link to js code
hhunter-ms Mar 4, 2024
c518c13
Merge branch 'issue_3704' of https://github.com/hhunter-ms/docs into …
hhunter-ms Mar 4, 2024
0632429
Merge pull request #4043 from hhunter-ms/issue_3704
hhunter-ms Mar 4, 2024
77b8c27
update support doc
hhunter-ms Mar 4, 2024
080f39a
mark 1.10 as unsupported
hhunter-ms Mar 4, 2024
db778bc
Update daprdocs/content/en/operations/support/support-release-policy.md
hhunter-ms Mar 5, 2024
b863311
Merge branch 'v1.13' into issue_3965_1.13
hhunter-ms Mar 5, 2024
72a2b92
Merge pull request #3980 from hhunter-ms/issue_3965_1.13
hhunter-ms Mar 5, 2024
7ac7f54
forgot website root
hhunter-ms Mar 5, 2024
1e586f3
update
hhunter-ms Mar 5, 2024
97a605f
Merge pull request #4070 from hhunter-ms/issue_3965_websiteroot
hhunter-ms Mar 5, 2024
ef9a5a3
Update secrets-scopes.md
newbe36524 Mar 13, 2024
0465651
Update gRPC-integration.md
newbe36524 Mar 13, 2024
91abd3e
Update open-telemetry-collector-jaeger.md
newbe36524 Mar 13, 2024
14044ac
Update zipkin.md
newbe36524 Mar 13, 2024
9628701
Update kubernetes-job.md
newbe36524 Mar 13, 2024
a72e283
Update middleware-bearer.md
newbe36524 Mar 13, 2024
dd3dfb0
Merge pull request #4080 from newbe36524/v1.13
hhunter-ms Mar 14, 2024
326a54e
add translation in zh-Hans for v1.13
newbe36524 Mar 15, 2024
96164a8
fix copy/paste typo
hhunter-ms Mar 18, 2024
788a943
add graceful shutdown duration section
hhunter-ms Mar 18, 2024
f4b0938
Merge pull request #4082 from newbe36524/v1.13
hhunter-ms Mar 21, 2024
f1d1124
Remove memory limits in production (#4091)
alicejgibbons Mar 27, 2024
bb0f15c
Merge branch 'v1.13' into issue_4081
marcduiker Mar 28, 2024
e7b3d95
Update table with features
marcduiker Mar 28, 2024
5c92fd5
Adjust documentation per `rawPayload=true` requirements (#4086)
passuied Apr 9, 2024
18a6d63
Update confusing examples for subscribePollInterval
tlund101 Apr 9, 2024
c3c58bf
Merge branch 'v1.13' into update-sdk-feature-table
marcduiker Apr 10, 2024
3b7e997
Update holopin.yml (#4108)
riosengineer Apr 11, 2024
58b1fb5
adding Dapr Repository Index for contributing (#4088)
AnnuCode Apr 12, 2024
20fd7a9
Merge branch 'v1.13' into patch-2
msfussell Apr 12, 2024
b94d959
Edit this page link directed to the wrong branch (#4101)
tlund101 Apr 12, 2024
bf7120e
Add 1.13.1 and 1.13.2 to the docs (#4110)
hhunter-ms Apr 12, 2024
95179f9
Add Diagrid conductor to integrations (#4112)
marcduiker Apr 18, 2024
0ef3ceb
Merge branch 'v1.13' into update-sdk-feature-table
msfussell Apr 22, 2024
3e8db2f
Update daprdocs/content/en/developing-applications/sdks/_index.md
marcduiker Apr 22, 2024
b951391
Add font usage for MacOS (#4094)
marcduiker Apr 25, 2024
70781fb
Merge branch 'v1.13' into patch-2
hhunter-ms Apr 25, 2024
d76f728
Merge branch 'v1.13' into update-sdk-feature-table
hhunter-ms Apr 25, 2024
b80bde3
Merge pull request #4102 from tlund101/patch-2
hhunter-ms Apr 25, 2024
b09ef71
Merge branch 'v1.13' into update-sdk-feature-table
msfussell Apr 25, 2024
c75daf0
Merge pull request #4095 from marcduiker/update-sdk-feature-table
hhunter-ms Apr 25, 2024
8f59430
Merge branch 'v1.13' into issue_4081
hhunter-ms Apr 25, 2024
78cd66a
Merge pull request #4083 from hhunter-ms/issue_4081
hhunter-ms Apr 25, 2024
766478c
Merge branch 'v1.13' into issue_4063
hhunter-ms Apr 26, 2024
a107511
Merge pull request #4084 from hhunter-ms/issue_4063
hhunter-ms Apr 26, 2024
0bfa02b
Clarify that disabling kubernetes built in secret store can only be d…
james-bartlett May 2, 2024
bacfeae
adding missing queueName (#4125)
hhunter-ms May 2, 2024
b1e6f32
Merge branch 'dapr:v1.13' into limit-workflow-concurrency-dotnet
WhitWaldo May 3, 2024
b046429
Updatex example, modifying sample at https://stackoverflow.com/questi…
WhitWaldo May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,65 @@ The key takeaways from this example are:
- The number of parallel tasks can be static or dynamic
- The workflow itself is capable of aggregating the results of parallel executions

While not shown in the example, it's possible to go further and limit the degree of concurrency using simple, language-specific constructs. Furthermore, the execution of the workflow is durable. If a workflow starts 100 parallel task executions and only 40 complete before the process crashes, the workflow restarts itself automatically and only schedules the remaining 60 tasks.
Furthermore,the execution of the workflow is durable. If a workflow starts 100 parallel task executions and only 40
complete before the process crashes, the workflow restarts itself automatically and only schedules the remaining 60
tasks.

It's possible to go further and limit the degree of concurrency using simple, language-specific constructs.

{{< tabs ".NET" >}}

{{% codetab %}}
<!-- .NET -->
```csharp
public static class TaskExtensions
{
public static async Task<IEnumerable<T>> WhenAllWithLimitAsync<T>(this IEnumerable<T>> tasks, int maxDegreeOfParallelism)
{
var semaphore = new SemaphoreSlim(maxDegreeOfParallelism);
var tasksWithSemaphore = new List<Task<T>>();

foreach(var task in tasks)
{
//Wait for the semaphore to become available
await semaphore.WaitAsync();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually violates one of the workflow code constraints, which is that you mustn't await any task that isn't created by the context object, so unfortunately we can't use SemaphoreSlim for this. Instead, the right way to do this is to follow an approach similar to what is posted here for Durable Functions: https://stackoverflow.com/a/58794510/2069.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, whoops - further illustrating why it's frustrating for the docs to leave this as an exercise to the reader to do properly. I'll review your answer there and adapt it for a second attempt. Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, that's a great point. 😅 Looking forward to the update! This is one of those questions we get a lot and I always kick myself for not having it properly documented somewhere. Thanks for doing this.


//Start a new task that runs the original task and releases the semaphore when done
tasksWithSemaphore.Add(task.ContinueWith(t =>
{
//Release the semaphore
semaphore.Release();
return t.Result;
}));
}

//Wait for all the tasks to complete
await Task.WhenAll(tasksWithSemaphore);
}
}

//Revisiting the earlier example...
// Get a list of N work items to process in parallel.
object[] workBatch = await context.CallActivityAsync<object[]>("GetWorkBatch", null);

// Schedule the parallel tasks, but don't wait for them to complete yet.
var parallelTasks = new List<Task<int>>(workBatch.Length);
for (int i = 0; i < workBatch.Length; i++)
{
Task<int> task = context.CallActivityAsync<int>("ProcessWorkItem", workBatch[i]);
parallelTasks.Add(task);
}

// This is where we diverge from the previous example and use our new extension method above
var result = await Task.WhenAllWithLimitAsync(parallelTasks, 5);

int sum = result.Sum(t => t);
await context.CallActivityAsync("PostResults, sum);
```

{{% /codetab %}}

{{< /tabs >}}

## Async HTTP APIs

Expand Down
Loading