cells-enterprise admin jobs purge-activities
./cells-enterprise admin jobs purge-activities
Purge users or files activities based on various criteria
Launch a dedicated job to purge activities. The server must be running when launching this command.
Activities are "social" events displayed in the interface. They can be either attached to "users" (notifications feed) or "nodes" (files/folders activities shown in the right panel when selecting a node).
As they can grow indefinitely, this command can help for housekeeping and maintaining the activities database small.
./cells-enterprise admin jobs purge-activities [flags]
-a, --admin_user string Administrative user login for running job in scheduler -b, --box string Either inbox (notifications received) or outbox (user activity / file activity) (default "outbox") --clear After DB compaction, remove original file, otherwise keep it as a backup -h, --help help for purge-activities --max int Clear by keeping a maximum number of records inside each box --min int Keep at least N, 0 for clearing all records (default 1) -o, --owner string Specific user or node ID, or all (default "*") --timeout string Set a longer timeout if there are tons of activities to purge (duration) (default "6h") -t, --type string Activity type, one of 'nodes' or 'users' (default "nodes") --updated string Clear by keeping all records updated before a given date. Use golang duration, e.g. '3d' will keep all records updated in the last 3 days and remove older entries.
Options inherited from parent commands
--broker string Pub/sub service for events between services (currently nats only) (default "nats") --broker_address string Nats broker port (default ":4222") --registry_address string Registry connection address (default ":4222") --registry_cluster_address string Registry cluster address --registry_cluster_routes string Registry cluster routes --transport string Transport protocol for RPC (default "grpc") --transport_address string Transport protocol port (default ":4222")
- ./cells-enterprise admin jobs - Group job-related commands