Timeout Implementation without schema values and entry point values
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne mit den Vertragsanforderungen und den referenzierten Zeilen 511–522 in src/rpdk/core/project.py und untersuche anschließend die generierten Klassen und Framework-Modelle auf Daten zu Timeouts und Anfragezeitpunkten. Die Aufgabe ist abgeschlossen, wenn die erforderlichen Werte und das Timeout-Verhalten für die Handler-Einstiegspunkte eindeutig spezifiziert und konsistent implementiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Looking at the contract as written, how do I guarantee the following lines?(see quoted below). From what I can tell, no plugin(this one included) contains the original start time of the resource call. Is it my handler's problem to track original call time in the callback context? Shouldnt this be included on the generated classes or within the framework Models? I can then just interrogate and respond with error, or even better let framework respond with error... Right now as written in contract - we dont know when to return since we do not have the start time and the resource schema of timeoutinMinutes is not exposed to us via any generated classes, correct? I see it is used to set maximum time on assuming the role only. That doesnt allow us to honor contract for less than 60 minutes for a single request: see here
As I see it we need at least 2 values to make the implementation somewhat generic:
- Schema TimeoutInMinutes time needs to be exposed to internal AWS python plugin. Also you need to expose original request time as well. Both of these together will allow you to expose a real variable
handlerEndTimethat is then read/used by customer handlers to exit reinvoke logic with a timeout error. This is the lates time that a handler can run based on its own schema. - Handler current entry time - this gets reset for every handler native call - we can use it to make sure private handlers return in correct time frame of 60 seconds or 30 seconds based on the different Action types.
Contract Lines
A create handler MUST return FAILED progress event if it can't reach the desired-state within the timeout specified in the resource schema.
An update handler MUST return FAILED progress event if it can't reach the desired-state within the timeout specified in the resource schema.
A delete handler MUST return FAILED progress event if it can't reach the desired-state within the timeout specified in the resource schema.
Originally posted by @carpnick in https://github.com/aws-cloudformation/cloudformation-cli-python-plugin/discussions/243
- Vorherrschende Sprache
- Python
- Sterne
- 107
- Forks
- 46
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aws-cloudformation/cloudformation-cli-python-plugin
-
Support UV Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Repo alive? Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
aws-cloudformation/cloudformation-cli-python-plugin#270 · 1 Kommentar · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
aws-cloudformation/cloudformation-cli-python-plugin#268 · 1 Kommentar · 2 Reaktionen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
aws-cloudformation/cloudformation-cli-python-plugin#264 · 1 Kommentar ·
Alle Issues in aws-cloudformation/cloudformation-cli-python-plugin
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
stephrobert/dsoxlab#238 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
sublimehq/package_control#1780 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
nwg-piotr/nwg-displays#145 ·