Email syncing isn't completing
I've connected my Google account for email syncing and the logs are
However on the screen, it shows syncing "ongoing" but it never completes. What am I doing wrong?
I'm running it locally using
My environment variables are
6 Replies
Hi @Saifee, to use messaging sync, you'll need to configure your worker. Are you self-hosting ? If yes, make sure to use the latest docker-compose: https://github.com/twentyhq/twenty/blob/main/packages/twenty-docker/docker-compose.yml
GitHub
twenty/packages/twenty-docker/docker-compose.yml at main · twentyhq...
Building a modern alternative to Salesforce, powered by the community. - twentyhq/twenty
You should have one server and one worker running Twenty (the worker will take care of jobs asynchronously)
Make sure to have:
- MESSAGE_QUEUE_TYPE=pg-boss (or redis if you want to setup redis which is faster) ==> this will say to your server to push the jobs into a postgres table, the worker will pick them from there
And to run these commands from worker container:
yarn command:prod cron:messaging:messages-import
yarn command:prod cron:messaging:message-list-fetch
I'm also having this issue, using docker. I tried running the commands in the worker container and they seem to do something but the "ongoing..." indicator keeps staying on, and I notice that if I click on people there are no emails associated with them (although people are imported from the email address book)
People and companies can be created through emails and calendarEvents, it's likely that they have calendar events attached to them in this case. The calendar sync is synchronous at the moment but not the email one
could you show me the logs of your worker? It's likely that it's not running properly
I fixed it by using redis instead of postgres.
ok, redis should be faster 🙂