Skip to content

Commit d9e6df1

Browse files
authored
fix(cloud): use worker-safe sqlite bundle chunks (#80)
1 parent f01e699 commit d9e6df1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/cli/cloud_commands.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ import (
2020
"github.com/openclaw/discrawl/internal/config"
2121
)
2222

23-
const discrawlCloudBatchSize = 250
23+
const (
24+
discrawlCloudBatchSize = 250
25+
discrawlCloudSQLiteBundleChunkSize = int64(64 * 1024 * 1024)
26+
)
2427

2528
func (r *runtime) runCloud(args []string) error {
2629
if len(args) == 0 || args[0] == "--help" || args[0] == "-h" {
@@ -246,6 +249,7 @@ func uploadSQLiteArchive(ctx context.Context, client *crawlremote.Client, app, a
246249
App: app,
247250
Archive: archive,
248251
SourcePath: snapshotPath,
252+
ChunkSize: discrawlCloudSQLiteBundleChunkSize,
249253
Counts: counts,
250254
Privacy: map[string]any{
251255
"excludes_guild_id": "@me",

0 commit comments

Comments
 (0)