TTDeadline

Expression Deadline handling for TTPyton

ticktalkpython.Deadline.TTFinishByOtherwise(self, data_value, TTTimeDeadline, TTPlanB, TTWillContinue)

TTFinishByOtherwise allows for explicit deadline checking associated with other tokens. The actual implementation is covered at the dataflow graph implementation, hence the empty body.

This function can only be called in an annotated @GRAPHify function.

Parameters:
  • data_value (TTToken) – the token to be used to check if the deadline has been met

  • TTTimeDeadline (TTToken) – the token responsible for setting the deadline. The stop_tick time of the token is used as the deadline

  • TTPlanB (Python expression) – When a deadline is triggered, the expression within Plan B will be run. Currently, the value is assumed to be a function call. In future releases, this will be a generic expression.

  • TTWillContinue (bool) – this specifies whether a value will be propagated after the Plan B expression runs. Setting this to False will stop any further token generation, which effectively stops any downstream nodes from firing in the same iteration