 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			934 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			934 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package cron
 | |
| 
 | |
| import "time"
 | |
| 
 | |
| // ConstantDelaySchedule represents a simple recurring duty cycle, e.g. "Every 5 minutes".
 | |
| // It does not support jobs more frequent than once a second.
 | |
| type ConstantDelaySchedule struct {
 | |
| 	Delay time.Duration
 | |
| }
 | |
| 
 | |
| // Every returns a crontab Schedule that activates once every duration.
 | |
| // Delays of less than a second are not supported (will round up to 1 second).
 | |
| // Any fields less than a Second are truncated.
 | |
| func Every(duration time.Duration) ConstantDelaySchedule {
 | |
| 	if duration < time.Second {
 | |
| 		duration = time.Second
 | |
| 	}
 | |
| 	return ConstantDelaySchedule{
 | |
| 		Delay: duration - time.Duration(duration.Nanoseconds())%time.Second,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Next returns the next time this should be run.
 | |
| // This rounds so that the next activation time will be on the second.
 | |
| func (schedule ConstantDelaySchedule) Next(t time.Time) time.Time {
 | |
| 	return t.Add(schedule.Delay - time.Duration(t.Nanosecond())*time.Nanosecond)
 | |
| }
 |