Skip to content

Conversation

@krassowski
Copy link
Contributor

References

Description

Adds an option to disable GC within documents (distinct from GC of documents in multi-document mode) via:

  • CLI by passing --skip-gc to either of y-sweet serve or y-sweet serve-doc
  • Y_SWEET_SKIP_GC environment variable

I was not sure if I should also add the environment variable to y-sweet-worker for feature parity but given that it is deprecated I went for a smaller changeset and only added it in the server.

I wonder if the configuration for toggling GC of documents themselves (the doc_gc option which is not exposed by clap) would be advisable, but I think it is already possible to configure checkpoint_freq_seconds instead which can be set to a very high value that is probably better than turning it off altogether.

@paulgb paulgb merged commit 4f1909b into jamsocket:main Dec 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow to run with garbage collection disabled?

2 participants