meltano / sdk

Write 70% less code by using the SDK to build custom extractors and loaders that adhere to the Singer standard: https://sdk.meltano.com
https://sdk.meltano.com
Apache License 2.0
97 stars 69 forks source link

Handle `SIGTERM` messages to shut down gracefully #129

Open MeltyBot opened 3 years ago

MeltyBot commented 3 years ago

Migrated from GitLab: https://gitlab.com/meltano/sdk/-/issues/130

Originally created by @aaronsteers on 2021-05-17 18:16:11


Summary

As brought up in this slack conversation, we have an opportunity to handle SIGTERM messages gracefully.

Proposed benefits

This could improve SDK-based taps' functionality when being told to shut down gracefully.

Proposal details

Best reasons not to build

No downsides, no reason not to implement.

MeltyBot commented 2 years ago

View 1 previous comment from the original issue on GitLab

stale[bot] commented 1 year ago

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

edgarrmondragon commented 1 year ago

Still relevant

stale[bot] commented 3 months ago

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

WillDaSilva commented 2 months ago

Handling SIGTERM gracefully could allow SDK users to use AWS spot instances and similar without the complexity that comes from attempting to handle hibernation. A long-running pipeline could run whenever there is cheap compute available, gracefully pause when there is no cheap compute available, and then resume where it left off once it becomes available again.

I'm not sure the compute cost of SDK pipelines is a notable concern for anyone, but it'd be nice in any case. Helps with unexpected shutdowns in general.