Skip to content

Enhance asset precompilation reliability with async execution#1048

Merged
mkllnk merged 1 commit intoopenfoodfoundation:masterfrom
chahmedejaz:task/1047-improve-precompile-assets-reliblity
Mar 19, 2026
Merged

Enhance asset precompilation reliability with async execution#1048
mkllnk merged 1 commit intoopenfoodfoundation:masterfrom
chahmedejaz:task/1047-improve-precompile-assets-reliblity

Conversation

@chahmedejaz
Copy link
Copy Markdown
Contributor

Closes #1047

Summary

Improve reliability of asset precompilation during deployment by running the task asynchronously and monitoring it with controlled polling.

Changes

  • Added async: 1800 to allow the asset precompilation task to run in the background with a maximum timeout of 30 minutes.
  • Added poll: 10 to check task status every 10 seconds while waiting for completion.

Reason

Asset precompilation can take significant time and may cause deployment failures if executed synchronously. Running it asynchronously prevents blocking the playbook, while polling ensures the task is still tracked and completed reliably without overwhelming the server.

Impact

  • Reduces deployment failures due to long-running asset builds
  • Improves stability of production deployments
  • Maintains visibility of task progress

Testing

  • Verified deployment completes successfully with async execution
  • Confirmed assets are precompiled correctly

@github-project-automation github-project-automation Bot moved this to All the things 💤 in OFN Delivery board Mar 17, 2026
@chahmedejaz chahmedejaz marked this pull request as ready for review March 18, 2026 02:03
@chahmedejaz chahmedejaz self-assigned this Mar 18, 2026
@chahmedejaz chahmedejaz moved this from All the things 💤 to Code review 🔎 in OFN Delivery board Mar 18, 2026
Copy link
Copy Markdown
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Nice. I didn't know about this feature.

@mkllnk mkllnk merged commit 52d1f27 into openfoodfoundation:master Mar 19, 2026
4 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from Code review 🔎 to Done in OFN Delivery board Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve Reliability of assets:precompile During Deployment

3 participants