Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Restart WPE on KME restart #653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rranjan3
Copy link
Contributor

@rranjan3 rranjan3 commented Aug 7, 2020

Signed-off-by: Rajeev Ranjan [email protected]

self._kv_helper.csv_prepend("wo-worker-scheduled",
self._worker_id, wo_id)
logger.info("Reinstating work order {} to ".format(wo_id)
+ "wo-worker-scheduled as this worker will retart.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change retart to restart

Copy link
Contributor

@danintel danintel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after one typo is fixed

self._worker_id, wo_id)
logger.info("Reinstating work order {} to ".format(wo_id)
+ "wo-worker-scheduled as this worker will restart.")
raise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is error message and code client will as a response for the WorkerRestartException?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not exposed to a client. It is an internal exception used as a signal to trigger restart.

Signed-off-by: Rajeev Ranjan <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants