mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-19 14:49:10 -06:00
no need to check for partitions when updating them (#2466)
This commit is contained in:
@@ -292,16 +292,6 @@ func (r *TaskRepositoryImpl) EnsureTablePartitionsExist(ctx context.Context) (bo
|
||||
}
|
||||
|
||||
func (r *TaskRepositoryImpl) UpdateTablePartitions(ctx context.Context) error {
|
||||
exists, err := r.EnsureTablePartitionsExist(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to check if table partitions exist: %w", err)
|
||||
}
|
||||
|
||||
if exists {
|
||||
r.l.Debug().Msg("table partitions already exist, skipping")
|
||||
return nil
|
||||
}
|
||||
|
||||
const PARTITION_LOCK_OFFSET = 9000000000000000000
|
||||
const partitionLockKey = PARTITION_LOCK_OFFSET + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user