-
Notifications
You must be signed in to change notification settings - Fork 35
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
[SDESK-7445] - Planning: Migrate planning:purge_expired_locks command to async #2142
Conversation
SDESK-7441
Fix behave tests partially SDESK-7441 Allow behave tests to run async code SDESK-7441 Fix pytests and use python 3.10 only Disable some actions and add verbose mode 999 Remove python 3.8 Point sd core to fix branch Revert "Fix linter issues" This reverts commit 152cfb5. Revert changes to ci-install SDESK-7441 Fix first batch of tests Reapply "Fix linter issues" This reverts commit e5ac69a. Fix second batch of tests SDESK-7441 Fix tests batch 3 Fix tests batch 4 SDESK-7441 Fix superdesk-core dependency Fix linter issues SDESK-7441
SDESK-7441
SDESK-7441
SDESK-7441
SDESK-7441
SDESK-7441
logger.info(f"Purging expired locks for {resource}") | ||
resource_service = SERVICE_MAPPING[resource] | ||
try: | ||
autosave_service = get_resource_service("event_autosave" if resource == "events" else f"{resource}_autosave") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarkLark86 we are making use of autosave services here. They are yet to be converted to async. Do they remain as is and just add a TODO to get back to them when finished ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds fine
SDESK-7441
SDESK-7441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple small suggestions
Purpose
This PR updates the
planning:purge_expired_locks
command to async by:Solves SDESK-7445
Note
This PR depends on #2131 so it is quite big but will become concise when the PR is merged.