push キューを開発用サーバーでテストする
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、ローカル開発用サーバー(dev_appserver
)を使用してアプリケーションの push キューをテストする際の制限事項について説明します。キューとタスクの設定は App Engine 本番環境で実行する場合の設定とほとんど同じですが、いくつか異なる点があります。
- 開発用サーバーでは、キューの
rate
属性と bucket-size
属性が無視されます。したがって、タスクは可能な限りその ETA に近くなるように実行されます。レートを 0
に設定しても、タスクが自動的に実行されなくなることはありません。
- 開発用サーバーでは、再起動するとキューの状態が失われます。
開発用サーバーで push タスクが実行されないようにするには、サーバーの起動時に次の JVM フラグを使用します。
dev_appserver.sh --jvm_flag=-Dtask_queue.disable_auto_task_execution=true
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-06 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-06 UTC。"],[[["This API is for first-generation runtimes, and users upgrading to second-generation runtimes should consult the migration guide for legacy bundled service migration options."],["The local development server (`dev_appserver`) for push queues has limitations, as it does not respect the `rate` and `bucket-size` attributes."],["The development server does not preserve queue state across restarts, leading to a loss of queue information."],["Tasks on the development server are executed as close to their ETA as possible, regardless of the queue's specified rate, and a rate of `0` does not prevent execution."],["You can prevent automatic push task execution in the development server by setting the JVM flag `-Dtask_queue.disable_auto_task_execution=true`."]]],[]]