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

Process Instance metadata from light tasks synchronously #2547

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

kelvin-muchiri
Copy link
Contributor

@kelvin-muchiri kelvin-muchiri commented Jan 26, 2024

Changes / Features implemented

Always process metadata from light tasks synchronously regardless of whether ASYNC_POST_SUBMISSION_PROCESSING_ENABLED is enabled or not.

Steps taken to verify this change does what is intended

  • QA
  • Tests

Side effects of implementing this change

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

  • Included tests
  • Updated documentation

Closes #2548

If the asynchronous task to update Instance.json with the full dict gets delayed, _id will be missing from the data. The change ensures even if async processing is enabled, non-performance intensive Instance.json data are always save asynchronously
@kelvin-muchiri kelvin-muchiri changed the title Save Instance json's non-peformance intensive data synchronously always Process Instance metadata from light tasks synchronously Jan 26, 2024
@kelvin-muchiri kelvin-muchiri merged commit 4914a3c into main Jan 29, 2024
10 checks passed
@kelvin-muchiri kelvin-muchiri deleted the missing-metadata-id-async branch January 29, 2024 14:16
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.

Missing _id key on endpoint /api/v1/data when asynchronous processing is enabled
3 participants