* @param runnableId
* @return
*/
private int getRunnableCount(String accountId, String appId, ProgramType programType,
String programId, String runnableId) {
ProgramLiveInfo info = runtimeService.getLiveInfo(Id.Program.from(accountId, appId, programId), programType);
int count = 0;
if (info instanceof NotRunningProgramLiveInfo) {
return count;
} else if (info instanceof Containers) {
Containers containers = (Containers) info;