Resident Backend Google App Engine" / _ ah / background" (蟒蛇) [英] Resident Backend Google App Engine "/_ah/background" (Python)

查看:82
本文介绍了Resident Backend Google App Engine" / _ ah / background" (蟒蛇)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我理解/ _ah / background在谷歌应用引擎(Python)方面的含义。我有一个常驻后端正在运行,而且我正在看到对该端点的请求。它们似乎是由我的代码之外的东西生成的。它们也似乎是由my / _ah / start处理程序处理的。



感谢您提供任何帮助。

解决方案

我相信 / _ ah / background 请求实际上不是HTTP请求,它们是后台线程。无论何时需要按照请求对某些内容进行分组,App Engine都使用 / _ ah / background 作为占位符。日志消息。这与我在后台使用后台线程中看到的相符。



(我可以发誓我最近在某个地方的文档中阅读了这篇文章,但是我还没有找到。 )

Can someone help me understand what "/_ah/background" is in terms of google app engine (Python). I have a resident backend running, and I am seeing requests being made to that endpoint. They appear to be generated by something outside my code. They also appear to be being handled by my /_ah/start handler.

Thanks for any help you can provide.

解决方案

I believe /_ah/background requests aren't actually HTTP requests, they're background threads. App Engine uses /_ah/background as a placeholder wherever it needs to group something by request, e.g. log messages. This matches what I see in my backends that use background threads.

(I could swear I read this in the docs somewhere recently, but I haven't found where yet.)

这篇关于Resident Backend Google App Engine" / _ ah / background" (蟒蛇)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆