mattermost / mattermost-plugin-msteams

MS Teams plugin for Mattermost
Other
13 stars 11 forks source link

MM-57120: delay monitoring job on startup #570

Closed lieut-data closed 5 months ago

lieut-data commented 5 months ago

Summary

Delay the monitoring job by at least 1 minute after startup to avoid a race where the plugin hasn't fully yet deployed in a mostly disabled environment.

{
  "timestamp": "2024-03-30 15:06:00.011 -03:00",
  "level": "info",
  "msg": "Delaying the Monitoring System Job until at least 1 minute after startup",
  "caller": "app/plugin_api.go:1004",
  "plugin_id": "com.mattermost.msteams-sync"
}

{
  "timestamp": "2024-03-30 15:07:00.016 -03:00",
  "level": "info",
  "msg": "Running the Monitoring System Job",
  "caller": "app/plugin_api.go:1004",
  "plugin_id": "com.mattermost.msteams-sync"
}

Ticket Link

Fixes: https://mattermost.atlassian.net/browse/MM-57120