0

我有一个功能,可以将带有付款账单的电子邮件发送给一些订阅者,因此我们必须排队这个功能以确保这封电子邮件将被发送。所以我们开始使用 Google Cloud Tasks 从 GCP 到它。

我像文档一样创建了队列:GCP Cloud Task Documentation

我的问题是我不知道如何创建和“将函数放入队列”。我在这里关注了文档:HTTP Tasks GCP docs ,但我以前从未使用过 GCP。

我在哪里可以找到上面第二个链接中指定的这些凭据?

  // TODO(developer): Uncomment these lines and replace with your values.
  // const project = 'my-project-id';
  // const queue = 'my-queue';
  // const location = 'us-central1';
  // const url = 'https://example.com/taskhandler';
  // const payload = 'Hello, World!';
  // const inSeconds = 180;
4

0 回答 0