Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A automated-email-migration
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mohammad Hanif Bin Maisin
  • automated-email-migration
  • Wiki
  • Workflow

Workflow · Changes

Page history
Create Workflow authored Dec 08, 2025 by Mohammad Hanif Bin Maisin's avatar Mohammad Hanif Bin Maisin
Hide whitespace changes
Inline Side-by-side
Workflow.md 0 → 100644
View page @ a61633f5
# Migration Workflow
## Daily Process Flow
### 1. Queue Sync (1:00 PM)
- Fetches new user consents from Bohrium API
- Adds users to migration queue
- Automatically triggers batch creation after sync
### 2. Batch Creation (Auto-triggered)
- Creates batches based on server capacity
- Assigns batches to available servers (TEMP01, TEMP02, TEMP03)
- Only creates batches for servers that have capacity
### 3. Pre-Migration Emails (1:30 PM)
- Sends notification emails to users scheduled for migration
- Includes migration date and instructions
- Sends summary email to monitoring address
### 4. AD Group Management (5:30 PM)
- Adds users to `sabahgov-gws-gmail` Exchange group (synced into Google Workspace as sabahgov-gws OU via GCDS)
- Removes users from `sabahgov-non-gmail` Exchange group
- Logs all changes
### 5. GCDS Sync (5:30 PM - After AD Management)
- Triggers GCDS task on Xenon server
- Waits for sync completion
- Synchronizes AD changes with Google Workspace
### 6. Migration Execution (6:00 PM)
#### PST Export
- Triggers PST export on Hafnium for servers with batches
- Monitors export progress
- Only triggers for servers that have batches assigned
#### GWME Migration
- Monitors PST export completion per server
- Triggers GWME migration when PST export completes
- Only triggers GWME for servers that have batches
- Monitors GWME execution and logs
## Batch Management
- Batches are created automatically after queue sync
- Batch size is based on server capacity
- Batches are assigned to servers based on availability
- Only servers with batches will execute PST export and GWME
## Error Handling
- Failed migrations are logged
- Retry logic for transient failures
- Master summary log tracks all operations
- Errors in logging don't interrupt workflow
---
**See also:** [Operations](Operations.md), [Troubleshooting](Troubleshooting.md)
Clone repository
  • Architecture
  • Configuration
  • Deployment
  • Home
  • Operations
  • System Components
  • Troubleshooting
  • Workflow