How to update the overall status of the grid_job phase
The jobs submitted are independent each other and this is an issue to determinate the overall status of the grid_job phase.
Each job will call the build/end_phase function. This call will update the current overall status of the phase.
It will be great if the overall status of the phase can be "running" until all the jobs have completed, then set the overall status to "succeeded" if all the jobs report the "succeeded" status, otherwhise set the status to "warning" if all the not-succeeded are reporting a "warning" status, finally, if at least one job report a status of "failed" set the overall status to "failed".