Commit bc50fd3
authored
fix: Ignore context cancelled errors. (#2091)
fixes cloudquery/cloudquery-issues#3451
The CLI closes the context that the Transformer plugin uses upon completion of the sync. This is not an error, so the SDK should not raise it in the `Transform` function.
This error is benign in that the sync still works as expected, but it looks bad in the logs, which end up showing up in `cloudquery.log`, and it bubbles up to other products like Asset Inventory which happens to show errors in bright red colours.
Here's a typical current run
<img width="877" alt="Screenshot 2025-03-07 at 10 57 36" src="https://github.com/user-attachments/assets/5ce61a18-b7a1-4f47-89ca-c3a8e620487d" />
Here's a fixed run
<img width="949" alt="Screenshot 2025-03-07 at 10 54 49" src="https://github.com/user-attachments/assets/239f7665-48b1-49c5-a0bc-84db8a89efee" />1 parent c4c9cd6 commit bc50fd3
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
459 | 463 | | |
460 | 464 | | |
461 | 465 | | |
| |||
0 commit comments