-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add env to disable worker restart #10664
base: master
Are you sure you want to change the base?
Changes from all commits
037a57d
462c786
d050fe0
153ab38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,10 +307,8 @@ export async function buildSwingset( | |
* @property {ReturnType<typeof import('@agoric/swing-store').makeArchiveSnapshot>} [archiveSnapshot] | ||
* @property {ReturnType<typeof import('@agoric/swing-store').makeArchiveTranscript>} [archiveTranscript] | ||
* @property {() => object | Promise<object>} [afterCommitCallback] | ||
* @property {import('./chain-main.js').CosmosSwingsetConfig} swingsetConfig | ||
* TODO refactor to clarify relationship vs. import('@agoric/swingset-vat').SwingSetConfig | ||
* --- maybe partition into in-consensus "config" vs. consensus-independent "options"? | ||
* (which would mostly just require `bundleCachePath` to become a `buildSwingset` input) | ||
* @property {number} [maxVatsOnline] | ||
* @property {boolean} [restartWorkerOnSnapshot] | ||
Comment on lines
-310
to
+311
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels like a step in the wrong direction—I'd really like to move towards better categorization of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree but right now passing the config itself for just picking a single consensus-independent option felt wrong too, especially because I didn't want this new option to be part of the cosmos driven config. Also that same file used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's fair, but the |
||
*/ | ||
|
||
/** | ||
|
@@ -340,7 +338,8 @@ export async function launch({ | |
archiveSnapshot, | ||
archiveTranscript, | ||
afterCommitCallback = async () => ({}), | ||
swingsetConfig, | ||
maxVatsOnline, | ||
restartWorkerOnSnapshot, | ||
}) { | ||
console.info('Launching SwingSet kernel'); | ||
|
||
|
@@ -418,8 +417,10 @@ export async function launch({ | |
}); | ||
|
||
console.debug(`buildSwingset`); | ||
/** @type {import('@agoric/swingset-vat').VatWarehousePolicy} */ | ||
const warehousePolicy = { | ||
maxVatsOnline: swingsetConfig.maxVatsOnline, | ||
maxVatsOnline, | ||
restartWorkerOnSnapshot, | ||
}; | ||
const { | ||
coreProposals: bootstrapCoreProposals, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be documented in env.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then let's document it as experimental. I don't like having environment variable sensitivity that can only be discovered by reading the code.