Skip to content

MS-567-improve-sync#785

Merged
meladRaouf merged 3 commits into
mainfrom
MS-567-improve-sync
Jul 6, 2024
Merged

MS-567-improve-sync#785
meladRaouf merged 3 commits into
mainfrom
MS-567-improve-sync

Conversation

@meladRaouf
Copy link
Copy Markdown
Collaborator

@meladRaouf meladRaouf commented Jul 4, 2024

[MS-567 Remove uploader and downloader from the deprecated workers](5d2079d)

@cla-bot cla-bot Bot added the ... label Jul 4, 2024
@meladRaouf meladRaouf changed the base branch from main to release/2024.1.3 July 4, 2024 07:40
private fun tagsForDeprecatedWorkers() = listOf(
"TAG_PEOPLE_SYNC_WORKER_TYPE_DOWN_COUNTER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_DOWNLOADER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_END_SYNC_REPORTER", // 2023.1.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think reporter workers also should not be cancelled.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@meladRaouf meladRaouf changed the base branch from release/2024.1.3 to main July 4, 2024 11:02
@meladRaouf meladRaouf requested review from a team, BurningAXE, TristramN, alex-vt, alexandr-simprints, luhmirin-s and ybourgery and removed request for a team July 4, 2024 11:49
"TAG_PEOPLE_SYNC_WORKER_TYPE_DOWN_COUNTER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_DOWNLOADER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_END_SYNC_REPORTER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_START_SYNC_REPORTER", // 2023.1.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Start and end workers are tied, so it both should be skipped.

@meladRaouf meladRaouf requested a review from luhmirin-s July 4, 2024 11:59
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jul 4, 2024

"TAG_PEOPLE_SYNC_WORKER_TYPE_START_SYNC_REPORTER", // 2023.1.0
"MASTER_SYNC_SCHEDULERS", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_UP_COUNTER", // 2023.1.0
"TAG_PEOPLE_SYNC_WORKER_TYPE_UPLOADER", // 2023.1.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did we add these tags for cleanup in the first place? Were they used for deprecated workers and then reused for the new ones? If that's the case, don't we still want to cancel deprecated workers? If so, we should rename the tags for the current workers instead of removing old ones from cleanup.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is intended to stop old workers scheduled in previous versions of
SID to prevent crashes during migration to newer app versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, and with the removal of these tags aren't we regressing to the same situation?

@meladRaouf meladRaouf merged commit 8414d33 into main Jul 6, 2024
@meladRaouf meladRaouf deleted the MS-567-improve-sync branch July 6, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants