2个作业独立运行,但是当我在1个作业(MONTHLY_BUDGET)下运行时,我收到以下错误:“超过最长执行时间”。
如何超过以下的执行时间:
function MONTHLY_BUDGET(){
BudgetMetric_ActivityDays();
BudgetMetric_GrossRevenue();
}
function Weekly_BudgetMetric_ActivityDays(){
var sheetName = "Weekly Budget (Blended)";
var sql = ' SQL ';
var ranges = ["wkmbddate","wkmbd1","wkmbd2","wkmbd3","wkmbd4","wkmbd5","wkmbd6","wkmbd7","wkmbd8","wkmbd9","wkmbd10"];
GSReport.runQueryAndInputData(sheetName, sql, ranges, 0);
}
function Weekly_BudgetMetric_GrossRevenue(){
var sheetName = "Weekly Budget (Blended)";
var sql = ' SQL ';
var ranges = ["wkbmgdate","wkbmg1","wkbmg2","wkbmg3","wkbmg4","wkbmg5","wkbmg6","wkbmg7","wkbmg8","wkbmg9","wkbmg10"];
GSReport.runQueryAndInputData(sheetName, sql, ranges, 0);
}
答案 0 :(得分:0)
检查此答案,了解如何添加时间触发器。这样,您可以在一次执行中提交查询,并在另一个执行中检查其结果: