Skip to content
tricknik edited this page Sep 13, 2010 · 9 revisions

task types

core types These task types are part of the core and do not need to be loaded

echo

Echo sends text to the standard logger (console)

echo: this text is sent to the standard logger echo: {{tokens}} are expanded

do

Do child tasks, useful for grouping tasks or including in a mapping

target 1: do: echo: I am a child task

lock

Lock provides mutual exclusion using temporary file locks.

Lock can be used to provide mutual exclusion to a set of tasks

lock: echo: this has an exclusive lock echo: only one sweetpotato process can call this at a time echo: all others must wait in the queue

A lock can be be used in more than one place by providing a key

target1: lock: myimpotandlock echo: this has an exclusive lock with the key “myimportantlock” echo: this has an exclusive lock echo: at any time only one of target1 or target2 is allowed to run target2: lock: myimportantlock echo: this has an exclusive lock with the key “myimportantlock” echo: at any time only one of target1 or target2 is allowed to run