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

feat: add clean suspended workspaces command #9808

Merged
merged 5 commits into from
Jan 24, 2025

Conversation

etiennejouan
Copy link
Contributor

@etiennejouan etiennejouan commented Jan 23, 2025

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR introduces a new automated system for managing suspended workspaces through a daily cron job that runs at 10 PM UTC.

7 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Very nice! I've left comments!

@etiennejouan
Copy link
Contributor Author

etiennejouan commented Jan 23, 2025

@charlesBochet
We should also clean all the workspaceMembers USER_WORKSPACE_DELETION_WARNING_SENT_KEY keyValuePair when switching to activationStatus: ACTIVE. I'm not sure if it needs to be done in billing-webhook-subscription.service.ts or asynchronously.

@etiennejouan etiennejouan force-pushed the ej/feat/179-cron-job-clean-suspended-workspaces branch from e700817 to 42bf775 Compare January 24, 2025 09:57
@charlesBochet charlesBochet merged commit edd7212 into main Jan 24, 2025
32 checks passed
@charlesBochet charlesBochet deleted the ej/feat/179-cron-job-clean-suspended-workspaces branch January 24, 2025 10:10
Copy link

Fails
🚫

node failed.

Log

�[31mError: �[39m SyntaxError: Unexpected token C in JSON at position 0
    at JSON.parse (<anonymous>)
�[90m    at parseJSONFromBytes (node:internal/deps/undici/undici:5584:19)�[39m
�[90m    at successSteps (node:internal/deps/undici/undici:5555:27)�[39m
�[90m    at fullyReadBody (node:internal/deps/undici/undici:1665:9)�[39m
�[90m    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)�[39m
�[90m    at async specConsumeBody (node:internal/deps/undici/undici:5564:7)�[39m
danger-results://tmp/danger-results-e98acd76.json

Generated by 🚫 dangerJS against 42bf775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Create "clean suspended workspace" cron commands - start + stop
5 participants