Merge pull request #2813 from filecoin-project/feat/unseal-on-workers

workers: Enable unseal support
This commit is contained in:
Łukasz Magiera 2020-08-06 22:03:43 +02:00 committed by GitHub
commit 4f509d9b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,11 @@ var runCmd = &cli.Command{
Usage: "enable precommit1 (32G sectors: 1 core, 128GiB Memory)", Usage: "enable precommit1 (32G sectors: 1 core, 128GiB Memory)",
Value: true, Value: true,
}, },
&cli.BoolFlag{
Name: "unseal",
Usage: "enable unsealing (32G sectors: 1 core, 128GiB Memory)",
Value: true,
},
&cli.BoolFlag{ &cli.BoolFlag{
Name: "precommit2", Name: "precommit2",
Usage: "enable precommit2 (32G sectors: all cores, 96GiB Memory)", Usage: "enable precommit2 (32G sectors: all cores, 96GiB Memory)",
@ -202,6 +207,9 @@ var runCmd = &cli.Command{
if cctx.Bool("precommit1") { if cctx.Bool("precommit1") {
taskTypes = append(taskTypes, sealtasks.TTPreCommit1) taskTypes = append(taskTypes, sealtasks.TTPreCommit1)
} }
if cctx.Bool("unseal") {
taskTypes = append(taskTypes, sealtasks.TTUnseal)
}
if cctx.Bool("precommit2") { if cctx.Bool("precommit2") {
taskTypes = append(taskTypes, sealtasks.TTPreCommit2) taskTypes = append(taskTypes, sealtasks.TTPreCommit2)
} }