Avoid race condition in scheduled publications after data sync
Avoid race condition in scheduled publications after data sync

The nightly data sync from prod->staging takes a while and there's a
potential race condition whereby a document which is scheduled for
publication during this time would not get enqueued on the staging side.
That's because by the time the DataSyncComplete job runs on staging it
is now 'overdue' and so this task would not have enqueued it.

I checked the behaviour of `Sidekiq::Worker#perform_at`[1]. If you
schedule a task in the past then it will run it immediately, which seems
like a reasonable behaviour in this context.

This PR therefore removes the constraint that the `queue_missing_jobs`
rake task should only enqueue future scheduled documents. Instead it
enqueues all scheduled documents including overdue ones.

[1]
https://github.com/mperham/sidekiq/blob/a652117e2e78603450e65985e7061c133599803d/lib/sidekiq/worker.rb#L50-L51

ggoral/whitehall,askl56/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,alphagov/whitehall,ggoral/whitehall,YOTOV-LIMITED/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,alphagov/whitehall,hotvulcan/whitehall,alphagov/whitehall,ggoral/whitehall,ggoral/whitehall,askl56/whitehall,alphagov/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall