Skip to content
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 --cleanup-workspace-dir in start-worker subcommand #53

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

everpeace
Copy link
Contributor

@everpeace everpeace commented Nov 2, 2023

This PR introduces:

  • --cleanup-workspace-dir in start-worker subcommand
  • (this also can be configured with Worker.TaskHandler.CleanupWorkspaceDir in pftaskqueue config.)

The option can prevent the size of the worker's working directory keeps increasing.

fixes #54

@@ -76,6 +76,7 @@ type WorkerSpec struct {
type TaskHandlerSpec struct {
DefaultCommandTimeout time.Duration `json:"defaultTimeout" yaml:"defaultTimeout" mapstructure:"defaultTimeout" default:"30m" validate:"required"`
Commands []string `json:"commands" yaml:"commands" default:"[\"cat\"]" validate:"required"`
CleanupWorkspaceDir bool `json:"cleanupWorkspace" yaml:"cleanupWorkspace" default:"false"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, we should add this option in WoekerSpec.

@superbrothers superbrothers merged commit 25b1b72 into pfnet-research:master Nov 15, 2023
3 checks passed
@github-actions github-actions bot mentioned this pull request May 24, 2023
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.

Worker's working directory size keeps increasing
2 participants