
"""Celery configuration values."""

BROKER_URL = "redis://localhost"
BROKER_POOL_LIMIT = 20
BROKER_TRANSPORT_OPTIONS = {
    "visibility_timeout": 60*60*6,
    "fanout_prefix": True,
    "fanout_patterns": True
}
# Use custom json encoder.
CELERY_ACCEPT_CONTENT = ["kjson"]
CELERY_RESULT_SERIALIZER = "kjson"
CELERY_TASK_SERIALIZER = "kjson"
CELERY_TIMEZONE = "UTC"
CELERY_ENABLE_UTC = True
CELERY_IGNORE_RESULT = True
CELERY_DISABLE_RATE_LIMITS = True
# Use a different DB than the redis default one.
CELERY_RESULT_BACKEND = "redis://localhost/1"


"""Celery configuration values."""

BROKER_URL = "redis://localhost"
BROKER_POOL_LIMIT = 20
BROKER_TRANSPORT_OPTIONS = {
    "visibility_timeout": 60*60*6,
    "fanout_prefix": True,
    "fanout_patterns": True
}
# Use custom json encoder.
CELERY_ACCEPT_CONTENT = ["kjson"]
CELERY_RESULT_SERIALIZER = "kjson"
CELERY_TASK_SERIALIZER = "kjson"
CELERY_TASK_RESULT_EXPIRES = 3600
CELERY_TIMEZONE = "UTC"
CELERY_ENABLE_UTC = True
CELERY_IGNORE_RESULT = True
CELERY_DISABLE_RATE_LIMITS = True
# Use a different DB than the redis default one.
CELERY_RESULT_BACKEND = "redis://localhost/1"

Set celery task results to expire in 1h
Set celery task results to expire in 1h

  
  """Celery configuration values."""
  
  BROKER_URL = "redis://localhost"
  BROKER_POOL_LIMIT = 20
  BROKER_TRANSPORT_OPTIONS = {
      "visibility_timeout": 60*60*6,
      "fanout_prefix": True,
      "fanout_patterns": True
  }
  # Use custom json encoder.
  CELERY_ACCEPT_CONTENT = ["kjson"]
  CELERY_RESULT_SERIALIZER = "kjson"
  CELERY_TASK_SERIALIZER = "kjson"
+ CELERY_TASK_RESULT_EXPIRES = 3600
  CELERY_TIMEZONE = "UTC"
  CELERY_ENABLE_UTC = True
  CELERY_IGNORE_RESULT = True
  CELERY_DISABLE_RATE_LIMITS = True
  # Use a different DB than the redis default one.
  CELERY_RESULT_BACKEND = "redis://localhost/1"
  
Set celery task results to expire in 1h
## Code Before:

"""Celery configuration values."""

BROKER_URL = "redis://localhost"
BROKER_POOL_LIMIT = 20
BROKER_TRANSPORT_OPTIONS = {
    "visibility_timeout": 60*60*6,
    "fanout_prefix": True,
    "fanout_patterns": True
}
# Use custom json encoder.
CELERY_ACCEPT_CONTENT = ["kjson"]
CELERY_RESULT_SERIALIZER = "kjson"
CELERY_TASK_SERIALIZER = "kjson"
CELERY_TIMEZONE = "UTC"
CELERY_ENABLE_UTC = True
CELERY_IGNORE_RESULT = True
CELERY_DISABLE_RATE_LIMITS = True
# Use a different DB than the redis default one.
CELERY_RESULT_BACKEND = "redis://localhost/1"

## Instruction:
Set celery task results to expire in 1h
## Code After:

"""Celery configuration values."""

BROKER_URL = "redis://localhost"
BROKER_POOL_LIMIT = 20
BROKER_TRANSPORT_OPTIONS = {
    "visibility_timeout": 60*60*6,
    "fanout_prefix": True,
    "fanout_patterns": True
}
# Use custom json encoder.
CELERY_ACCEPT_CONTENT = ["kjson"]
CELERY_RESULT_SERIALIZER = "kjson"
CELERY_TASK_SERIALIZER = "kjson"
CELERY_TASK_RESULT_EXPIRES = 3600
CELERY_TIMEZONE = "UTC"
CELERY_ENABLE_UTC = True
CELERY_IGNORE_RESULT = True
CELERY_DISABLE_RATE_LIMITS = True
# Use a different DB than the redis default one.
CELERY_RESULT_BACKEND = "redis://localhost/1"
