Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

Commit

Permalink
Add scheduler source and info on () type (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthias authored and mands committed Jun 13, 2017
1 parent 2ceda1b commit ba227af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions reference/supported_integrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ NStack is built to integrate with existing infrastructure, event, and data-sourc
Sources
^^^^^^^


Schedule
--------

::

Sources.schedule<()> {
cron = "* * * * * *"
}

NStack's Schedule source allows you to run a workflow in intervals over a time period. It takes a single argument of a *crontab*, which specifies the interval to use.
Note that NStack's scheduler expects six fields: minute, hour, day of month, month, day(s) of week, year. As the scheduler emits events, it is of type Unit, which is represented by ``()``



Postgres
-------

Expand Down
2 changes: 2 additions & 0 deletions reference/supported_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ More complex types can be built out of primitive ones:
``Void`` is a special type that is used to define custom sources and sinks,
see :ref:`supported-integrations`.

``()`` represents Unit, which signifies an event which contains no data.

A user can define their own type in the :ref:`workflow_language`.

0 comments on commit ba227af

Please sign in to comment.