def coordinate(self):
        server_data = self.getServerData()
        attributes = {
            "created":sdb_now(offset=self.time_offset),
            "load_avg":server_data["load_avg"],
            "running_time":server_data["running_time"],
            "cost":server_data["cost"],
            "active_requests":server_data["active_requests"],
            "pending_requests":server_data["pending_requests"],
            "current_timestamp":server_data["current_timestamp"],
            "job_queue":len(self.job_queue),
            "active_jobs":len(self.active_jobs),
            "queued_jobs":len(self.queued_jobs),
            "current_sql":self.current_sql.replace("\n", ""),
            "last_job_query_count":self.last_job_query_count}
        if self.uuid_limits["start"] is None and self.uuid_limits["end"] is not None:
            attributes["range"] = "Start - %s" % self.uuid_limits["end"]
        elif self.uuid_limits["start"] is not None and self.uuid_limits["end"] is None:
            attributes["range"] = "%s - End" % self.uuid_limits["start"]
        elif self.uuid_limits["start"] is None and self.uuid_limits["end"] is None:
            attributes["range"] = "Full range"
        else:
            attributes["range"] = "%s - %s" % (self.uuid_limits["start"], self.uuid_limits["end"])
        attributes.update(self.network_information)
        d = self.sdb.putAttributes(
            self.aws_sdb_coordination_domain, 
            self.uuid, 
            attributes, 
            replace=attributes.keys())
        d.addCallback(self._coordinateCallback)
        d.addErrback(self._coordinateErrback)
        return d
dataset/ETHPy150Open wehriam/awspider/awspider/servers/execution.py/ExecutionServer.coordinate/original