Skip to content

Commit

Permalink
#2083 ignore result (#2084)
Browse files Browse the repository at this point in the history
* #2083 ignore result

* ADd to task
  • Loading branch information
timgl committed Oct 28, 2020
1 parent e3bf0cb commit c59a6c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posthog/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def check_cached_items():
update_cached_items()


@app.task
@app.task(ignore_result=True)
def update_cache_item_task(key: str, cache_type: str, payload: dict) -> None:
from posthog.tasks.update_cache import update_cache_item

Expand Down
2 changes: 1 addition & 1 deletion posthog/tasks/update_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update_cached_items() -> None:

logger.info("Found {} items to refresh".format(len(tasks)))
taskset = group(tasks)
taskset.apply_async()
taskset.apply_async(ignore_result=True)


def _calculate_trends(filter: Filter, team_id: int) -> List[Dict[str, Any]]:
Expand Down

0 comments on commit c59a6c9

Please sign in to comment.