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

Load Purge flow from Strapi to display System namespace in OSS at server start time #4878

Closed
2 tasks done
anna-geller opened this issue Sep 10, 2024 · 0 comments · Fixed by #4883
Closed
2 tasks done
Assignees
Labels
area/backend Needs backend code changes enhancement New feature or request

Comments

@anna-geller
Copy link
Member

anna-geller commented Sep 10, 2024

Feature description

id: purge
namespace: system

tasks:
  - id: purge_executions
    type: io.kestra.plugin.core.execution.PurgeExecutions
    endDate: "{{ now() | dateAdd(-1, 'MONTHS') }}"
    purgeLog: false
    states:
      - SUCCESS

  - id: purge_logs
    type: io.kestra.plugin.core.log.PurgeLogs
    endDate: "{{ now() | dateAdd(-1, 'MONTHS') }}"

triggers:
  - id: daily
    type: io.kestra.plugin.core.trigger.Schedule
    disabled: true
    cron: "0 9 * * *" 

Blueprint: http://localhost:8080/ui/blueprints/234

https://kestra.io/blueprints/trigger/234-system-flow-purge-execution-data-including-logs-metrics-and-outputs-on-a-schedule

Todo:

  • load at server start time
  • adjust the namespace (e.g. with RegEx) in case user has overwritten system to some other name in their configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants