Skip to content

refactor: [BB-6077] allow setting celery backend in yml - #30572

Merged
github-actions[bot] merged 1 commit into
openedx:open-release/nutmeg.masterfrom
open-craft:navin/fix-celery-backend-nutmeg
Aug 2, 2022
Merged

refactor: [BB-6077] allow setting celery backend in yml#30572
github-actions[bot] merged 1 commit into
openedx:open-release/nutmeg.masterfrom
open-craft:navin/fix-celery-backend-nutmeg

Conversation

@navinkarkera

Copy link
Copy Markdown
Contributor

Description

Cherry pick of #30244

At Opencraft, we want to run multiple instances of celery workers in separate servers. The celery workers need to be able to share task results. Currently, the CELERY_RESULT_BACKEND is hard coded to use django-cache.

So this PR allows to setup CELERY_RESULT_BACKEND via configuration.

To use django ORM as celery backend, one can set CELERY_RESULT_BACKEND to django-db as described in docs.

Supporting information

Deadline

"None"

@openedx-webhooks

openedx-webhooks commented Jun 13, 2022

Copy link
Copy Markdown

Thanks for the pull request, @navinkarkera! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels Jun 13, 2022
@natabene

Copy link
Copy Markdown
Contributor

@navinkarkera Thank you for your contribution. Is this ready for our review?

@navinkarkera

Copy link
Copy Markdown
Contributor Author

@natabene Thank you! Yes it s ready for your review.
cc: @kaustavb12

@kaustavb12 kaustavb12 left a comment

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.

👍

Looks good to me

  • I tested this: Tested in the PR sandbox
  • I read through the code

@BbrSofiane

Copy link
Copy Markdown
Contributor

@navinkarkera sorry for the delay in looking at this PR. Can you please have a look at the failing tests?

@navinkarkera
navinkarkera force-pushed the navin/fix-celery-backend-nutmeg branch from 26433f7 to b2c5b24 Compare July 6, 2022 04:56
@navinkarkera

Copy link
Copy Markdown
Contributor Author

@BbrSofiane Rebase fixed it. Please have a look.

@navinkarkera
navinkarkera force-pushed the navin/fix-celery-backend-nutmeg branch from b2c5b24 to 41b18d0 Compare July 14, 2022 04:05
@natabene

Copy link
Copy Markdown
Contributor

@BbrSofiane This is ready for your review again.

@BbrSofiane

Copy link
Copy Markdown
Contributor

@openedx/edx-community-bot merge

@BbrSofiane

Copy link
Copy Markdown
Contributor

@edx-community-bot merge

@BbrSofiane

Copy link
Copy Markdown
Contributor

@jfavellar90 can you merge this PR?

@Carlos-Muniz

Copy link
Copy Markdown
Contributor

@BbrSofiane The command to auto-merge is: @openedx-community-bot merge
Please see openedx/axim-engineering#299 (comment) for more detail

@jfavellar90

jfavellar90 commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

@openedx/edx-community-bot merge

@mariajgrimaldi

Copy link
Copy Markdown
Member

could it possibly be a permissions issue? I could merge it :)

@Carlos-Muniz

Copy link
Copy Markdown
Contributor

@jfavellar90 @mariajgrimaldi
Yes the @openedx-community-bot merge command only works for a couple of users, like @BbrSofiane.

@BbrSofiane

Copy link
Copy Markdown
Contributor

@openedx-community-bot merge

@BbrSofiane

Copy link
Copy Markdown
Contributor

Thanks I always look for the actual bot

@github-actions
github-actions Bot merged commit 294c1f3 into openedx:open-release/nutmeg.master Aug 2, 2022
@openedx-webhooks

Copy link
Copy Markdown

@navinkarkera 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants