LILY-344: split get_messages in batches of 500
LILY-344: no more batches when saving messages
Merge branch 'fix/split-save-and-fetch-messages-in-worker3-344' into develop