Commit d82f636
committed
fix(aws_dms): make boto3 import lazy so other components can load without it
The lazy-loader in dagster_community_components/__init__.py imports every
component's module when dg discovers plugins — if aws_dms fails to import
because boto3 isn't installed, the whole discovery fails and every unrelated
component breaks. Guard the boto3/botocore imports so aws_dms module loads
cleanly; the actual client construction (which does need boto3) happens
inside methods and raises with a clear message if it's missing.
Surfaced by the qlik_replicate demo — dg check failed on ModuleNotFoundError
for boto3 during plugin discovery even though the demo doesn't use aws_dms.1 parent 2ae6d19 commit d82f636
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
0 commit comments