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

Fixed bug: tag-engage workflow failes when event is not published #5855

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ciegler
Copy link
Contributor

@ciegler ciegler commented May 15, 2024

Fixed the bug that the tag-engage workflow failed when trying to add or remove the video365 tag for an unpublished event. Now the workflow is skipped when the event has not been published yet.

@@ -134,7 +134,8 @@ public WorkflowOperationResult start(WorkflowInstance instance, JobContext conte
try {
mediaPackageForSearch = searchService.get(mediaPackageId);
} catch (NotFoundException | UnauthorizedException e) {
throw new WorkflowOperationException(e);
logger.info("No tag engage workflow found for {}", mediaPackageId);
Copy link
Member

Choose a reason for hiding this comment

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

That logging message isn't quite correct: I'd write something like "Media package {} isn't published to Engage, skipping." Because the workflow does exist, and so does the media package, but not in the SearchService/Engage.

@@ -134,7 +134,8 @@ public WorkflowOperationResult start(WorkflowInstance instance, JobContext conte
try {
mediaPackageForSearch = searchService.get(mediaPackageId);
} catch (NotFoundException | UnauthorizedException e) {
throw new WorkflowOperationException(e);
logger.info("Media package {} is not published to Engage, skipping", mediaPackageId);
Copy link
Member

Choose a reason for hiding this comment

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

Just realized that we should only skip on NotFound, and fail on Unauthorized. Sorry... 😅

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.

None yet

2 participants