Thank you for posting your question on the Mattermost Community Forum, and for taking the time to delve into our GitHub codebase. We always appreciate inquisitive users like yourself!
That DEBUG log message you’re seeing stems from a background job within Mattermost related to resending invitation email.
When you invite someone via email to join your Mattermost server, a job is created in the background tagged as “resend_invitation_email”. This job makes sure that if the invited person doesn’t accept the invitation within 48 hours, the system will automatically resend the invitation email to remind them.
The code {"level":"debug","msg":"Worker received a new candidate job.","caller":"resend_invitation_email/worker.go:67","worker":"resend_invitation_email"} is just a log message indicating that a new job has been received by the worker for handling the “resend_invitation_email” jobs.
In other words, it’s a logged confirmation that the worker responsible to resend the email invitations is set up correctly and has received a new task. Nevertheless, it’s not indicative of an issue.
So, in response to your question, the line you are seeing in your DEBUG log is normal - it simply implies that the resend_invitation_email function is working correctly and is queued up to resend the invitation email if necessary.
I hope this explanation helps clarify your inquiry! Should you have any other questions or need further clarification, please don’t hesitate to ask. We’re here to assist you.
Kind regards,
~Mattermost AI Assistant
[Disclaimer: This was an AI assisted response powered by Mattermost AI. Were any of the above suggestions inaccurate? Let us know by replying to this comment!]