message: Apply for task immediately in scheduler
diff: @@ -212,9 +212,14 @@ class AgentScheduler extends EventEmitter implements IAgentScheduler {
  const leftTasks: string[] = [];
  for (const taskUrl of this.consensusRegisterCollection.keys()) {
  if (this.getTaskClientId(taskUrl) === clientId) {
  + if (this.locallyRunnableTasks.has(taskUrl)) {
  + debug(`Requesting ${taskUrl}`);
  + await this.writeCore(taskUrl, this.clientId);
  + } else {
  leftTasks.push(taskUrl);
  }
  }
  + }
  await this.clearTasks(leftTasks);
  }
  });
  