Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: error detection #123

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vpodzime
Copy link
Collaborator

No description provided.

…rk_function()

This tells the scheduler that this work is done and should not be
scheduled again.

Ticket: MEN-7555
Changelog: none
Signed-off-by: Vratislav Podzimek <[email protected]>
Instead of being stuck in the non-working setup.

Ticket: MEN-7555
Changelog: none
Signed-off-by: Vratislav Podzimek <[email protected]>
@vpodzime
Copy link
Collaborator Author

vpodzime commented Nov 26, 2024

I'm putting this up for an early evaluation of the idea. Do you agree this is the right way to go? Some notes from me:

  • We could add locking, but I feel like it's not worth it because if we miss an error because of interleaving threads, it's not a big deal.
  • We could make the code platform-specific and use atomic operations, but, again, not worth it for the same reason.
  • Network issues are a good first example, what else should we try to detect?
  • Should we return MENDER_OK to the scheduler while waiting for a reboot so that we have a (better) chance to detect that the reboot is not happening and we should fail the deployment? (introducing a pending_reboot counter)
  • Should the limits be build-configurable?
  • Should this functionality be optional?

Thanks in advance for feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant