runsAfter
Specify preferred execution order for tasks
Description
runsAfter(
specifies a preferred execution order for tasks. If possible, the build system runs the
predecessor tasks, specified by taskObj
,predecessors
)predecessors
, before the task
represented by taskObj
.
This function requires CI/CD Automation for Simulink Check.
runsAfter(___,
specifies how the build system handles the preferred execution order using one or more
Name=Value
)Name=Value
arguments.
Note
You can specify the relationship between two tasks as either a
dependsOn
relationship or a runsAfter
relationship, but not both.
If you define multiple relationships between the same tasks, the build system only uses the most recent relationship and ignores previous relationships. For example:
runsAfter(taskA, taskB)
runsAfter(taskB, taskA) % build system only uses this relationship
Examples
Input Arguments
Tips
In your process model, you can specify the relationship between tasks as either a
dependsOn
or runsAfter
relationship. If your task depends
on inputs or results from another task to run successfully,
specify the relationship by using the dependsOn
method
instead. For more information, see Define Task Relationships.