Tutorials/CloudSim/run task

Prerequisites == For this tutorial, you should be familiar with CloudSim constellations, and have a running constellation at hand. Your constellation should also have simulation tasks that are ready to run. See here for a detailed description of what tasks are:
 * Launch/terminate constellations in the cloud
 * Managing Simulation tasks: How to manage, add and remove simulation tasks to a constellation

Introduction ==

CloudSim simulation runs are run via tasks. Only one task can be active in a constellation at a time, and tasks can only be run once (but new tasks can be added at any time).

Running a task ==

A task can be started if its status (the circle at the left of the task) is gray. If a task is already running, the current task must be stopped before a new one is started.


 * To start a task, simply press the 'Start' button on the task.



The task status icon should start flashing yellow, until the simulator is started on the Cloud. Once the simulator is running (as indicated by the blue status on the simulator machine), the task status icon will flash blue, until the task is stopped.

View information about the running task ==

It is possible to inspect information about tasks. Unless you have 'admin' or 'officer' privileges, it is not possible to view information about tasks before they have been started. To view information about the running task (or a terminated task), press the 'View' or '...' button at the right of the task description.

Stopping the current task ==

To stop the currently running task, press the "Stop current task". When a task is terminated by pressing the "Stop current task" button, it is 'aborted' before it can terminate naturally. Hence the status indicator on the light will start flashing red and turn to solid red once the simulator has shutdown. Once the task stops flashing, it is possible to start other tasks that are not terminated.



Reset the tasks == This can be useful if a node hangs, if the simulation crashes during a simulation, or if you want to run tasks a second time.

Task status reference: ==

Before running a task Running a task After a task has been run
 * [[file:status gray.png|20px]] Fixed gray. This indicates that the task is ready to start.
 * [[file:status gray.png|20px]][[file:status blue.png|20px]] Blinking blue. This indicates that the simulator process is launching and that the plugins and ROS node are being setup.
 * [[file:status blue.png|20px]] Fixed blue. This means that the simulator is up and running, and the task is being executed.
 * [[file:status gray.png|20px]][[file:status red.png|20px]] Blinking red. The task is in the process of stopping. The simulation is being shutdown.
 * [[file:status red.png|20px]] Fixed red. The task has stopped.