Skip to content

Conversation

@FrankApiyo
Copy link
Member

Changes / Features implemented

  • Make send_message async/non-blocking

Steps taken to verify this change does what is intended

  • tested locally

Side effects of implementing this change

  • N/A

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

Closes #

# pylint: disable=too-many-arguments,too-many-positional-arguments
@app.task(base=AutoRetryTask)
@use_master
def send_message(
Copy link
Contributor

@kelvin-muchiri kelvin-muchiri Dec 11, 2025

Choose a reason for hiding this comment

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

Let's rename this to send_message_async and create a send_message utility method in onadata.libs that contains the implementation details example

I also think it's time we rename send_message to something else since it's ambiguous to sending an email message though this is up for discussion

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed it to send_message_async.

Maybe we can rename it to log_activity?

Base automatically changed from revert-activity-log-folding-implementation to main December 15, 2025 07:40
@FrankApiyo FrankApiyo force-pushed the make-send-message-call-asynchronous branch from b1019c8 to 5e115f0 Compare December 19, 2025 08:08
@FrankApiyo FrankApiyo force-pushed the make-send-message-call-asynchronous branch from 5e115f0 to d7d41ce Compare January 2, 2026 06:13
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.

3 participants