mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? Limit standalone activity retention time to 1 day. Export chasm FullyQualifiedName and GenerateTypeID ## Why? Agreed to limit standalone execution main persistence to one day, so as not to incur extraneous costs and over-stress storage. Exported FullyQualifiedName and GenerateTypeID so they are accessible to the chasm activity code. ## How did you test it? - [X] built - [X] run locally and tested manually - [X] covered by existing tests - [X] added new unit test(s) - [ ] added new functional test(s)
36 lines
1.5 KiB
Go
36 lines
1.5 KiB
Go
package chasm
|
|
|
|
const (
|
|
testLibraryName = "TestLibrary"
|
|
testComponentName = "test_component"
|
|
testSubComponent1Name = "test_sub_component_1"
|
|
testSubComponent11Name = "test_sub_component_11"
|
|
testSubComponent2Name = "test_sub_component_2"
|
|
|
|
testSideEffectTaskName = "test_side_effect_task"
|
|
testOutboundSideEffectTaskName = "test_outbound_side_effect_task"
|
|
testPureTaskName = "test_pure_task"
|
|
)
|
|
|
|
var (
|
|
testComponentFQN = FullyQualifiedName(testLibraryName, testComponentName)
|
|
testSubComponent1FQN = FullyQualifiedName(testLibraryName, testSubComponent1Name)
|
|
testSubComponent11FQN = FullyQualifiedName(testLibraryName, testSubComponent11Name)
|
|
testSubComponent2FQN = FullyQualifiedName(testLibraryName, testSubComponent2Name)
|
|
|
|
testSideEffectTaskFQN = FullyQualifiedName(testLibraryName, testSideEffectTaskName)
|
|
testOutboundSideEffectTaskFQN = FullyQualifiedName(testLibraryName, testOutboundSideEffectTaskName)
|
|
testPureTaskFQN = FullyQualifiedName(testLibraryName, testPureTaskName)
|
|
)
|
|
|
|
var (
|
|
testComponentTypeID = GenerateTypeID(testComponentFQN)
|
|
testSubComponent1TypeID = GenerateTypeID(testSubComponent1FQN)
|
|
testSubComponent11TypeID = GenerateTypeID(testSubComponent11FQN)
|
|
testSubComponent2TypeID = GenerateTypeID(testSubComponent2FQN)
|
|
|
|
testSideEffectTaskTypeID = GenerateTypeID(testSideEffectTaskFQN)
|
|
testOutboundSideEffectTaskTypeID = GenerateTypeID(testOutboundSideEffectTaskFQN)
|
|
testPureTaskTypeID = GenerateTypeID(testPureTaskFQN)
|
|
)
|