canvas 0.72.0__py3-none-any.whl → 0.72.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of canvas might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: canvas
3
- Version: 0.72.0
3
+ Version: 0.72.1
4
4
  Summary: SDK to customize event-driven actions in your Canvas instance
5
5
  Author-email: Canvas Team <engineering@canvasmedical.com>
6
6
  License-Expression: MIT
@@ -335,7 +335,7 @@ plugin_runner/exceptions.py,sha256=ltqn56SMTg-T5miSh5hux4ojwx0hZGSWaB7BxyAmcAo,5
335
335
  plugin_runner/generate_allowed_imports.py,sha256=LQuVxL_j5n0Sj-KgR4Q8D9mj0xfuDqzO69kBfZUqwGE,2565
336
336
  plugin_runner/installation.py,sha256=2KTDWWsQ97WIN2k9tC4d50zN77WWK_1D5obXlhLfWw8,8536
337
337
  plugin_runner/load_all_plugins.py,sha256=4T2gW2YljhIx4xfwf1c0F_8oIbE1ubsLj0ShkHRtlVY,5847
338
- plugin_runner/plugin_runner.py,sha256=ZR2wmlPLOiCnazshfSB3HusDNgbyti5H5_ce9C0rnB4,26674
338
+ plugin_runner/plugin_runner.py,sha256=DrFJFQXudC_SpPPA-WiM8z3NC1_g5gCGscH25GkA1Vc,26881
339
339
  plugin_runner/sandbox.py,sha256=DhYbDl6BOkSBciYuFTwIXhSrcnaWm2WxUXYEkrRaAhQ,30332
340
340
  protobufs/canvas_generated/messages/effects.proto,sha256=WKJ6pOj3cDpNhkstz3FVHmTHENdifM6icyATFleZjkk,10859
341
341
  protobufs/canvas_generated/messages/events.proto,sha256=J6PzKLYc2qZlD4xN5rVf3zRqrimclyKxtITVZTKMoaE,52945
@@ -357,7 +357,7 @@ canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookie
357
357
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/README.md,sha256=3QKoJQq3YmdplGnDOBMsLCJ3Ya1_aKjoz-QiWc4QfjA,291
358
358
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/protocols/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
359
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/protocols/my_protocol.py,sha256=fKLLcOIwvSWenW8-7tr8VqnF4Iox_5wU9V-Qw9UySsA,2381
360
- canvas-0.72.0.dist-info/METADATA,sha256=VdmCUSm8anVpEHNl3_0NhNyxLvjQOlwYHOeXFLg1c-Y,4758
361
- canvas-0.72.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
362
- canvas-0.72.0.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
363
- canvas-0.72.0.dist-info/RECORD,,
360
+ canvas-0.72.1.dist-info/METADATA,sha256=HI7RFnz4iGB1fpVT9TNXfKpk7Azu-i_vTstn-Y9LGx4,4758
361
+ canvas-0.72.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
362
+ canvas-0.72.1.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
363
+ canvas-0.72.1.dist-info/RECORD,,
@@ -42,6 +42,7 @@ from canvas_sdk.effects.simple_api import Response
42
42
  from canvas_sdk.events import Event, EventRequest, EventResponse, EventType
43
43
  from canvas_sdk.handlers.simple_api.websocket import DenyConnection
44
44
  from canvas_sdk.protocols import ClinicalQualityMeasure
45
+ from canvas_sdk.templates.utils import _engine_for_plugin
45
46
  from canvas_sdk.utils import metrics
46
47
  from canvas_sdk.utils.metrics import measured
47
48
  from logger import log
@@ -419,6 +420,9 @@ def synchronize_plugins(run_once: bool = False) -> None:
419
420
  if "action" not in data:
420
421
  continue
421
422
 
423
+ # clear the template engine cache so that any template changes
424
+ # from plugins are picked up
425
+ _engine_for_plugin.cache_clear()
422
426
  plugin_name = data.get("plugin", None)
423
427
  try:
424
428
  if data["action"] == "reload":