See also

@follows

@follows(task | “task_name” | mkdir (directory_name), [more_tasks, ...])

Purpose:

Indicates task dependencies

Example:

def task1():
    print "doing task 1"

@follows(task1)
def task2():
    print "doing task 2"

Parameters:

  • task:

    a list of tasks which have to be run before this function

  • “task_name”:

    Dependencies can be quoted function names. Quoted function names allow dependencies to be added before the function is defined.

    Functions in other modules need to be fully qualified.

  • directory_name:

    Directories which need to be created (if they don’t exist) before the task is run can be specified via a mkdir indicator object:

    @follows(task_x, mkdir("/output/directory") ...)
    def task():
        pass