Garcon Versions Save

Library for AWS SWF.

0.3.0

8 years ago

0.2.3

8 years ago

Fixes:

  • Missing namespace fixes in decider.py and activity.py. #68 by @glennyonemitsu

0.2.2

8 years ago

Fix:

  • Fix marking activity as failed for errors that are larger than 255 characters. #65

0.2.1

8 years ago

Fixes:

  • When using the task decorator, the required informations for the GarconLogger extension are missing. #64

0.2.0

8 years ago

New feature:

Custom error handler

You can now set a custom error handler for failures. The signature of the method should contain actor and exception. To have it on the decider, just set on the flow: on_exception and for activities, just set the on_exception attribute on the create method.

Example of a flow:

domain = 'dev'
name = 'country_flow'


def on_exception(actor, exception):
    """Handle exception.
    """

    print(actor, exception)


create = activity.create(domain, name, on_exception=on_exception)

0.1.0

8 years ago

Introducing a few feature:

Manual decider

(Introduced in https://github.com/xethorn/garcon/pull/59)

Until now, the creation of the decider was automated. It means that adding conditions around activity execution, creating several activities from a loop was not easy (you had to use generators.) This change allows to manually write the decider.

Example:

def decider(schedule):
    activity_1 = schedule(
        'activity_1', test_activity_1)
    activity_2 = schedule(
        'activity_2', test_activity_2, requires=[activity_1])

    for i in range(3):
        activity_3 = schedule(
            'activity-3.{}'.format(i), test_activity_3, requires=[activity_2])

        if activity_3.ready and activity_2.result.get('4') == 4:
            last_activity = schedule(
                'last_activity.{}'.format(i), test_activity_last,
                input=dict(the='end'))

Few things:

  • Id should be unique: it's the only way to not confuse an execution.
  • Activity should be created the same was as they are today (except you don't need to set the require flag on them.)

0.0.7

8 years ago

New feature:

  • Add version support.

0.0.6

8 years ago

Introduces:

Params

The params notifies how information should be sent to the activity. For instance: if you have a local information (e.g. database username, password), you shouldn't send this information to SWF – instead, you can use the garcon.param.StaticParam to provide this information.

Please note: external activities do not support this param.

0.0.5

9 years ago

Updates:

  • Make Garcon a namespace (which makes it easier to extend – done for garcon.contrib)

0.0.4

9 years ago

Introduces:

  • External Activities (see #52)