Analytics Prune #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Analytics Prune | |
| on: | |
| schedule: | |
| - cron: "17 3 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| prune: | |
| name: Prune analytics retention | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: superfly/flyctl-actions@fc53c09e1bc3be6f54706524e3b82c4f462f77be # v1 | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| with: | |
| args: >- | |
| ssh console -a agentjido-prod | |
| -C '/app/bin/agent_jido eval "IO.inspect(AgentJido.Analytics.prune_older_than(180))"' |