In environments where workunits are archived in a very few days, some developers include automatic workunit protection via this ECL:
I can understand the desire to ease finding such workunits when necessary, but it requires manual intervention to undo this protection. Things may change in Dali that changes the concern, but at this point, the more active workunits in Dali, the more memory used. I'm wondering about a few alternatives:
- Default protection expiry to configured maximum days unless new #workunit('protectDays', xxx); is used, where xxx is 0 (forever) or some other value.
- Default protection expiration is unchanged (none), but allow the 'protectDays' value to allow users to set expiration day count.
I'm imagining this activity, wherein the workunit protection would be disabled for expiring workunits, could be performed by Sasha at the same time as or similar to its deletion of expiring files.
Given the change to the ECL, other components would be involved, but I'll defer on that.