Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

*note: the format of the result is flexible.  I chose an array of arrays because KRL has some powerful array operators.  This could easily be a map of schedEv ids and values if that is a better usecase.

list_scheduled

...

()

Returns an array of scheduled event maps. A scheduled event maps has the following fields:

...

Code Block
languagejs
themeConfluence
[
  {
    'next_scheduled' : 1466111340,
    'rid' : 'cs_test',
    'type' : 'repeat',
    'id' : '5763150227f093bc43090000',
    'event' : 'notification/_test_consubstantiating',
    'timespec' : '9 * * * *'
  },
  {
    'next_scheduled' : 1466129234,
    'rid' : 'cs_test',
    'type' : 'once',
    'id' : '57631502aae7dcbc430a0000',
    'event' : 'notification/_test_whiling'
  }
]

scheduled

...

_history(<id>)

event:scheduled_event_history() accepts an id for a scheduled event.  This id could come from event:list_scheduled_events() or from the postlude. This will return the status from the last time the schedEv raised the event as a map.

...