为什么“失败重试”在Google Cloud Functions控制台中显示为灰色?

时间:2018-09-07 19:27:58

标签: firebase google-cloud-platform google-cloud-firestore google-cloud-functions

我正在设置一些Cloud Function来处理Firestore文档事件。我正在使用标准的DATA table1; infile datalines DELIMITER=','; INFORMAT id 2. type $10. date date2 MMDDYY10. ; INPUT id date type date2; format date date9. date2 date9.; DATALINES; 1,02/09/2012,BIG,02/09/2012 2,05/16/2012,BIG,05/18/2012 2,06/18/2012,BIG,06/18/2012 2,06/18/2012,SMALL, 3,08/08/2011,BIG,08/08/2012 3,09/13/2011,BIG,09/13/2012 4,06/08/2016,BIG,06/12/2016 4,06/10/2016,SMALL, 5,08/16/2012,BIG,08/16/2012 5,08/15/2012,SMALL, ; run; /*removing same date for an id with different type- only the record with SMALL is REMOVED*/ proc sql; create table comb as Select id, date, type,date2 from table1 t Where type <> "SMALL" or not exists(select date from table1 where id = t.id and date = t.date and type <> "SMALL"); run; 命令来部署我的功能。按照in this doc的说明进行操作时,我在GCP控制台上转到功能的配置,并看到我需要启用的复选框显示为灰色,没有更多信息:

cloud function trigger configuration

关于为什么我无法通过GCP控制台启用自动重试的任何想法?前述文档将这种方法(通过GCP控制台)描述为启用重试的唯一方法。理想情况下,我可以通过某种方式注释我的函数代码,以启用/禁用每个函数的重试。

1 个答案:

答案 0 :(得分:2)

要回答我自己的问题...只需单击顶部工具栏上的checkforhours = DateDiff("n", (DLookup("[ShiftDate]", "BreakSked", "[AgentID] = '" & Me.bagent.Value & "' AND [ShiftDate]= #" & Me.bshiftdate.Value & "#-1") & "'btimein'"), Now) 按钮,以使复选框可编辑:

function details toolbar

如果有一种方法可以通过部署EDIT的标志或通过代码注释来实现,那么仍然很高兴。

相关问题