Release of #1700. The following lines need to be added to posthog/celery.py to release PR. Deliberately excluded to manually test the PR without sending everyone an email.

```python
# inside setup_periodic_tasks
sender.add_periodic_task(
    crontab(day_of_week="mon"), task_weekly_email_report.s(),
)

# bottom of file
@app.task
def task_weekly_email_report(self):
    from posthog.tasks.email import send_weekly_email_report

    send_weekly_email_report()
```
posthog/celery.py
with connection.cursor() as cursor:
        cursor.execute(
            "DO $$ BEGIN IF (SELECT exists(select * from pg_proc where proname = 'update_partitions')) THEN PERFORM update_partitions(); END IF; END $$"
        )
@app.task
def status_report():
    from posthog.tasks.status_report import status_report
    status_report()
@app.task
def calculate_event_action_mappings():
    from posthog.tasks.calculate_action import calculate_actions_from_last_calculation
    calculate_actions_from_last_calculation()
@app.task
def calculate_cohort():
    from posthog.tasks.calculate_cohort import calculate_cohorts
    calculate_cohorts()
@app.task
def check_cached_items():
    from posthog.tasks.update_cache import update_cached_items
    update_cached_items()
@app.task
def update_cache_item_task(key: str, cache_type: str, payload: dict) -> None:
    from posthog.tasks.update_cache import update_cache_item
    update_cache_item(key, cache_type, payload)
@app.task(bind=True)
def debug_task(self):
    print("Request: {0!r}".format(self.request))