Implement standardized temporal workflow naming system with namespace support#89
Draft
Implement standardized temporal workflow naming system with namespace support#89
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #89 +/- ##
==========================================
+ Coverage 36.20% 38.37% +2.16%
==========================================
Files 66 67 +1
Lines 2563 2692 +129
Branches 167 182 +15
==========================================
+ Hits 928 1033 +105
- Misses 1624 1645 +21
- Partials 11 14 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: QMasterMoo <3915399+QMasterMoo@users.noreply.github.com>
Co-authored-by: QMasterMoo <3915399+QMasterMoo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] improve temporal workflow naming and such
Implement standardized temporal workflow naming system with namespace support
May 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR establishes clear standards for temporal workflow naming that supports multiple applications, environments, and namespaces while maintaining backward compatibility.
Problem
The existing temporal workflow naming was hardcoded and inflexible:
This approach had several limitations:
Solution
Standardized Naming Patterns
{org}-{app}-{env}-{namespace}-{workflow_name}schedule-{org}-{app}-{env}-{namespace}-{workflow_name}{org}-{app}-{env}-{queue_name}Key Features
1. Flexible Configuration
2. Auto-generated Workflow Names
SlackUserInfoWorkflow→slack-user-infoAIGeminiResponseWorkflow→ai-gemini-responseDataMigrationWorkflow→data-migration3. Custom Naming Support
4. Namespace-based Organization
5. Comprehensive Validation
Backward Compatibility
The system gracefully falls back to legacy naming when the new configuration isn't initialized:
Documentation and Examples
docs/temporal-workflow-naming.mdexamples/temporal_naming_example.pyCLI Integration
Enhanced temporal setup with naming parameters:
# Environment variables TEMPORAL_ORG=whale-net TEMPORAL_APP=slack-bot APP_ENV=prodTesting
Migration Path
This implementation provides the standardized, flexible naming system requested while ensuring no breaking changes to existing functionality.
Fixes #73.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.