Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Add maintenance mode to queue tasks while SF is down #204

Merged
merged 1 commit into from
May 27, 2016
Merged

Add maintenance mode to queue tasks while SF is down #204

merged 1 commit into from
May 27, 2016

Conversation

pmac
Copy link
Member

@pmac pmac commented May 26, 2016

  1. Add a setting that will enable maintenance mode.
  2. Exempt some tasks from maintenance mode.
  3. Add a command to resend said queued tasks.

@pmac
Copy link
Member Author

pmac commented May 26, 2016

@glogiotatidis r?

for old_task in queryset:
old_task.retry()
count += 1
messages.info(request, "Queued %d task%s to process" % (count, '' if count == 1 else 's'))

Choose a reason for hiding this comment

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

👍 for attention to details

@glogiotatidis
Copy link

glogiotatidis commented May 27, 2016

Good job! 🍨 r+

* Add management command to process the maintenance queue
* Add QueuedTask to admin
@pmac pmac merged commit d05b037 into mozilla:master May 27, 2016
@pmac pmac deleted the queue-requests-maintenance-mode branch May 27, 2016 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants