# Update cloudsearch domain for project corpus

## Overview

A new column is indexed in prod-etl-projects corpus. To populate this new index on cloudsearch domain, requires backfill for all projects. This script will update art_relations.project.last_updated, to queue it up for Maxwell to populate subaccount_name in cloudsearch.

## Setup

```bash
python3 -m venv env
```

```bash
source env/bin/activate
```

```bash
pip install -r requirements.txt
```

```bash
cp .env.shadow .env
```

## Run

```bash
python project/run.py (Argument 1 : OFFSET for the records to be updated in batches.) (Argument 2 : LIMIT for the number of records to be updated.)

eg : python project/run.py 0 5000 (Will update 5000 records)
eg : python project/run.py 10000 (Will update 10000 records)
eg : python project/run.py 5000 10000 (Will update 10000 records, with offset 5000)
eg : python project/run.py (Will update 500 records given as a default limit)
eg : python project/run.py incorrect (Will only accept numeric arguments and give error message)
```
