botify-labs / python-simple-workflow

DISCONTINUED - See README
http://python-simple-workflow.readthedocs.org/
MIT License
18 stars 4 forks source link

A decider cannot schedule more than 100 tasks in a single decision #28

Closed ggreg closed 10 years ago

ggreg commented 10 years ago

See the FAQ Limits: you can schedule up to 100 activity tasks in one decision and also issue several decisions one after the other.

It requires to send split the list of decisions in chunks of up to 100 decisions and send each chunk separately.

ggreg commented 10 years ago

The chunk solution does not work because a decider can only respond to a decision task once. It means it can at most schedule 100 activity tasks per decision task. Hence it needs to trigger another decision tasks to schedule the remaining activity tasks.

It should be implemented in the decision logic.