RKuttruff opened a new pull request, #241:
URL: https://github.com/apache/incubator-sdap-nexus/pull/241
Usage:
`python purge.py -u USERNAME -p PASSWORD [CASSANDRA ARGS...] (--before
DATETIME | --before-months MONTHS | --keep-completed | --all) [--keep-failed]
[--dry-run]`
Options:
- `-u & -p`: Cassandra username and password
- One of:
- `--before`: Datetime (ie, '2023-04-11T19:50:00') before which all data
will be purged.
- `--before-months`: Number of months prior to current date before which
all data will be purged.
- `--keep-completed`: Keep all completed executions. (only purge
uncompleted executions)
- `--all`: Purge ALL data. (drops and re-creates keyspace)
- Cassandra args (optional)
- `--cassandra`: Cassandra hostname(s) or IP(s). (Default: localhost)
- `-k / --cassandraKeyspace`: Cassandra keyspace for storing DOMS data.
(Default: doms)
- `--cassandraPort`: Port used to connect to Cassandra. (Default: 9042)
- `--cassandraProtocolVersion`: The version of the Cassandra protocol the
driver should use. (Default: 3)
- Additional args
- `--keep-failed`: Do not purge uncompleted executions (by default all are
purged). Incompatible with `--keep-completed`
- `--dry-run`: Only print the execution ids to be deleted / DB operations
to be performed and exit. Do not actually alter the DB
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]