Skip to main content

transition: Rake tasks

These rake tasks come from the desc descriptions in transition’s lib/tasks folder. To change what’s shown here, change the description in the code.

clear_expired_sessions

Clear the sessions table of records that are over 25 hours old.

k exec deploy/transition -- rake clear_expired_sessions

View source (lib/tasks/clear_expired_sessions.rake)

clear_old_mappings_batches

Clear the mappings batches (and entries) that are over 48 hours old.

k exec deploy/transition -- rake clear_old_mappings_batches

View source (lib/tasks/clear_old_mappings_batches.rake)

db:structure:dump

Dump DB schema with auto-increment corrections

k exec deploy/transition -- rake db:structure:dump

View source (lib/tasks/db/structure/dump.rake)

import:all

Import Organisations and Hits and update DNS details

k exec deploy/transition -- rake import:all[bucket]

View source (lib/tasks/import/all.rake)

import:all:organisations

Import all Organisations

k exec deploy/transition -- rake import:all:organisations

View source (lib/tasks/import/all.rake)

import:all:hits

Import all hits from s3

k exec deploy/transition -- rake import:all:hits[bucket]

View source (lib/tasks/import/all.rake)

import:dns_details

Look up DNS details for all hosts

k exec deploy/transition -- rake import:dns_details

View source (lib/tasks/import/dns_details.rake)

import:hits

Import hits for a file or mask

k exec deploy/transition -- rake import:hits[filename_or_mask]

View source (lib/tasks/import/hits.rake)

import:update_legacy_from_s3

Copy filenames and etags for all old stats files from s3

k exec deploy/transition -- rake import:update_legacy_from_s3[bucket]

View source (lib/tasks/import/hits.rake)

import:hits_mappings_relations

Dev only: refresh c14nd path relations between hits and mappings

k exec deploy/transition -- rake import:hits_mappings_relations

View source (lib/tasks/import/hits_mappings_relations.rake)

import:mappings_from_host_paths

Create mappings from HostPaths for a site

k exec deploy/transition -- rake import:mappings_from_host_paths[site_abbr]

View source (lib/tasks/import/mappings_from_host_paths.rake)

import:organisations

Import all Organisations

k exec deploy/transition -- rake import:organisations

View source (lib/tasks/import/organisations.rake)

import:daily_hit_totals

Refresh totals from hits

k exec deploy/transition -- rake import:daily_hit_totals

View source (lib/tasks/import/totals.rake)

import:hits:precompute:enable

Set flag to start computing all hits/all-time view for a list of given site id

k exec deploy/transition -- rake import:hits:precompute:enable

View source (lib/tasks/import/hits/precompute.rake)

import:hits:precompute:disable

Set flag to stop computing all hits/all-time view for a list of given site id

k exec deploy/transition -- rake import:hits:precompute:disable

View source (lib/tasks/import/hits/precompute.rake)

import:hits:refresh_materialized

Refresh materialized views for all hits, all-time on larger sites

k exec deploy/transition -- rake import:hits:refresh_materialized

View source (lib/tasks/import/hits/refresh_materialized.rake)