Commit 3affab7e by 王悦

add pushAliTmStatus2Fq

parent dd6cf873
//tag规则 release-v188.19.* 同步fqboss状态到峰擎
const TaskBase = require("../../task.base");
const system = require("../../../system");
var settings = require("../../../../config/settings");
class TmtransferTask extends TaskBase {
constructor() {
super(TaskBase.getServiceName(TmtransferTask));
this.restclient = system.getObject("util.restClient");
this.fqbossUrl = settings.fqbossUrl();
}
async beforeTask(params) {
console.log("前置操作......", this.serviceName);
//this.isThrough=true;
//console.log(this.cacheManager);
}
async subDoTask() {
console.log("--------------");
console.log("TestTask1.....");
try {
var url = this.fqbossUrl + "api/tmInfoPusherApi/collectInfo";
this.restclient.execGet(null, url);
return system.getResultSuccess();
} catch (error) {
console.log(error);
return null;
}
}
}
module.exports = TmtransferTask;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment