Skip to content

Quickstart doesn't work as written #8

Description

@cyounkins

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions