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 CLI to do DB cleanup #36

Merged

Conversation

garden-of-delete
Copy link
Contributor

@garden-of-delete garden-of-delete commented Mar 18, 2024

  • πŸ’₯ moves the cleanup logic from scheduler to the new cleanup CLI.

@garden-of-delete
Copy link
Contributor Author

after discussion, moving the cleanup tasks into its own service command to be triggered by cron.

@garden-of-delete garden-of-delete marked this pull request as draft March 18, 2024 23:13
@garden-of-delete garden-of-delete marked this pull request as ready for review March 18, 2024 23:31
@garden-of-delete garden-of-delete self-assigned this Mar 19, 2024
.sprinkler.yaml Outdated
@@ -24,6 +24,9 @@ scheduler:
# apiKeyName: "x-api-key"
# apiKey: "changeme"

cleanup:
scheduledWorkflowTimeout: "720h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do it like the following, and move the scheduler unlock in cleanup too.

cleanup:
  # table names
  scheduledWorkflow: "720h"
  workflowSchedulerLock: "1h"
  workflowActivationLock: "1h"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@realstraw realstraw merged commit 52c9d2e into salesforce:main Mar 20, 2024
2 checks passed
@realstraw realstraw changed the title automatic deletion of expired scheduled_workflow rows πŸ’₯ ✨ Add CLI to do DB cleanup Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants