Skip to main content

settings

Migrate settings from Celery 3.x to Celery 4.x.

def settings(
filename: string,
django: boolean,
compat: boolean,
no_backup: boolean
)

Migrate settings from Celery 3.x to Celery 4.x.

Parameters

NameTypeDescription
filenamestringThe path to the configuration file that will be migrated to the new Celery settings format.
djangobooleanIf true, applies Django-specific key filtering during the migration process.
compatbooleanIf true, maintains backwards compatibility by using legacy key mapping logic.
no_backupbooleanIf true, prevents the creation of a backup file before overwriting the original configuration file.