bstempi / pyswf

Classes that build on Boto's SWF classes to make workflow construction easier.
9 stars 0 forks source link

Quickstart doesn't work as written #8

Open cyounkins opened 8 years ago

cyounkins commented 8 years ago

This library looks really good but I'm having trouble getting it to work!

First, the quickstart doc says to have the following imports:

from datastores import from serializers import from decorators import from activityworker import from decisionworker import *

Well, that results in ImportError because all those are under the pyswfaws module.

After fixing that, I get WorkflowExecutionFailed with exception global name 'activity_task_a' is not defined. I added from activity import activity_task_a to the top of the decider, but then I get WorkerflowExecutionFailed with exception 'int' object has no attribute 'result'. I assume this is because the activity is being executed in local mode. How do I fix?

Once I get this working I'll send a PR to fix the documentation. Thanks for any help!

Gist with current config: https://gist.github.com/cyounkins/a9f0a0fb87a250fea877d72ae9c3f86c

bstempi commented 7 years ago

Hi, sorry for missing this.

In SWF, you have to define your domains and activity types first. Is the test domain activity_task_a task registered? See http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-task-lists.html.

cyounkins commented 7 years ago

I've moved on from this project - I'd encourage you to set it up fresh, try it, and improve the documentation if steps on AWS need to be made.