|
BuiltInActionTypes
Describes the various actions that Taskr can execute
IntroductionEach Taskr task executes one or more actions. An action can be anything -- a simple shell command or piece of Ruby code to execute all the way to a complex network call to an external REST service. Each kind of action is an implementation of a Taskr Action class written in Ruby. You can think of an action as a function that takes some set of named parameters -- the particular parameters depend on the action type. Taskr comes packaged with several Action classes. This page describes each of these built-in actions and their parameters. If you are interested in implementing your own actions, please see ImplementingCustomActions. A quick way to see all of the actions available in your Taskr server is to log in via the web-based interface (http://localhost:7007/tasks by default) and click on the Schedule New Task link. The available Action types are listed under the action_class_name pulldown. Selecting any of these actions displays the selected action's parameters. Below is a screenshot of the "New Task" page:
Built-in Actions and their ParametersShell ActionThe Shell action allows Taskr to execute tasks much like the Unix cron system. The Shell task simply executes some piece of shell script on the local system (i.e. the machine that the Taskr service is running on).
Ruby ActionExecutes the given block of Ruby code.
Rest ActionPlaces an HTTP REST call to the given URL. This is useful for triggering actions in other RESTful services. Since Taskr is a RESTful service, using the Rest action it is possible to talk back to the Taskr service, to for example create or delete another task.
Howlr ActionSend a message through a Howlr service. Howlr provides a RESTful interface for sending out emails and other kinds of messages, so the Howlr action can be used to send messages at a given time or interval. Since Howlr is a RESTful service, this is essentially just a customized version of the Rest Action described above.
Taskr4rails ActionExecutes code on a remote Rails server. See Taskr4rails for more info. Custom ActionsAs mentioned above, it is fairly easy to implement and install your own actions types. Please see ImplementingCustomActions for details. |
Sign in to add a comment