【问题标题】:Adobe Analytics API cannot schedule new futures after shutdownAdobe Analytics API 无法在关机后安排新的未来
【发布时间】:2021-11-15 19:40:39
【问题描述】:

我的问题是:我无法列出订阅的 VRS,因为当我调用 getReportSuites 方法时,它无法显示错误:

api2.getReportSuites(token) : cannot schedule new futures after shutdown

这非常有趣,因为在我的本地环境中它可以工作,实际上我检索数据,但是当我上传代码并将其运行到 Azure Functions 高级版中时,它停止工作并出现此错误。

我尝试过的: 我试图更改凭据并刷新它们以防万一这是凭据问题,但它发生了同样的事情。我也更改了令牌本身,但似乎与此无关。 我的代码;

   tkn="";
    try:
        
        tkn=api2.Analytics(cids);#this works 
    except Exception as inst:
        logging.error ("Error in invocar api2.Analytics(ret) get token : " +str(inst));

    vrsid="";#retrieve the vrs
    
    try:
        vrsid=tkn.getReportSuites();#here pops out the error
    except Exception as ex:
        logging.error ("Error in   api2.getReportSuites(ret) : " +str(ex));

这是一个月前的工作,为什么现在停止了? 我关注的链接: python executor spawn tasks from done callback (recursively submit tasks)

https://bugs.python.org/issue40093

https://github.com/agronholm/apscheduler/issues/285

【问题讨论】:

    标签: python api azure-functions


    【解决方案1】:

    我通过在我的 requirements.txt 文件中添加“futures==3.1.1”库解决了这个问题。我已将代码上传到 azure 函数容器并再次工作。但我不明白为什么它突然停止工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-07
      • 2020-11-25
      • 2018-12-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多