temporal-sdk
Safe HaskellNone
LanguageHaskell2010

Temporal.Exception

Synopsis

Documentation

prettyCallStack :: CallStack -> String Source #

Pretty print a CallStack.

Since: 4.9.0.0

data ActivityCancelReason Source #

A type of exception thrown to a running activity to cancel it due to things happening with the worker, such as a shutdown. This differs from a normal activity cancellation, which uses the cancel function from the async package.

Constructors

NotFound

The activity no longer exists on the server (may already be completed or its workflow may be completed).

CancelRequested

The activity was explicitly cancelled.

Timeout

Activity timeout caused the activity to be marked cancelled.

WorkerShutdown

The worker the activity is running on is shutting down.

UnknownCancellationReason

We received a cancellation reason that we don't know how to handle.

data CompleteAsync Source #

Asynchronous Activity Completion is a feature that enables an Activity Function to return without causing the Activity Execution to complete. The Temporal Client can then be used to both Heartbeat Activity Execution progress and eventually provide a result.

The intended use-case for this feature is when an external system has the final result of a computation, started by an Activity.

Consider using Asynchronous Activities instead of Signals if the external process is unreliable and might fail to send critical status updates through a Signal.

Consider using Signals as an alternative to Asynchronous Activities to return data back to a Workflow Execution if there is a human in the process loop. The reason is that a human in the loop means multiple steps in the process. The first is the Activity Function that stores state in an external system and at least one other step where a human would “complete” the activity. If the first step fails, you want to detect that quickly and retry instead of waiting for the entire process, which could be significantly longer when humans are involved.

Constructors

CompleteAsync 

data RuntimeError Source #

Errors that are an issue with the worker itself, not the workflow

These errors should cause the worker to exit, and imply an issue with the SDK itself.

Constructors

RuntimeError String 

newtype ActivityType Source #

Constructors

ActivityType 

Instances

Instances details
FromJSON ActivityType Source # 
Instance details

Defined in Temporal.Common

ToJSON ActivityType Source # 
Instance details

Defined in Temporal.Common

Data ActivityType Source # 
Instance details

Defined in Temporal.Common

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ActivityType -> c ActivityType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ActivityType #

toConstr :: ActivityType -> Constr #

dataTypeOf :: ActivityType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ActivityType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ActivityType) #

gmapT :: (forall b. Data b => b -> b) -> ActivityType -> ActivityType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ActivityType -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ActivityType -> r #

gmapQ :: (forall d. Data d => d -> u) -> ActivityType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ActivityType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ActivityType -> m ActivityType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ActivityType -> m ActivityType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ActivityType -> m ActivityType #

IsString ActivityType Source # 
Instance details

Defined in Temporal.Common

Show ActivityType Source # 
Instance details

Defined in Temporal.Common

Eq ActivityType Source # 
Instance details

Defined in Temporal.Common

Ord ActivityType Source # 
Instance details

Defined in Temporal.Common

Hashable ActivityType Source # 
Instance details

Defined in Temporal.Common

Lift ActivityType Source # 
Instance details

Defined in Temporal.Common

Methods

lift :: Quote m => ActivityType -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ActivityType -> Code m ActivityType #