Skip to content

Abstract

flowtask.events.events.abstract

AbstractEvent

AbstractEvent(*args, **kwargs)

Bases: MaskSupport, LogSupport, LocaleSupport, ABC

Abstract Event Class.

This class is the base class for all events in FlowTask.

__call__ abstractmethod async

__call__()

Called when event is dispatched.

get_env_value

get_env_value(key, default=None)

Retrieves a value from the environment variables or the configuration.

:param key: The key for the environment variable. :param default: The default value to return if the key is not found. :return: The value of the environment variable or the default value.