Skip to content

Commit

Permalink
Fixed the Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-arora-cashfree committed Dec 23, 2024
1 parent 382d45e commit f468a82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _broker_supports_visibility_timeout(url):
),
"worker_concurrency": conf.getint("celery", "WORKER_CONCURRENCY", fallback=16),
"worker_enable_remote_control": conf.getboolean("celery", "worker_enable_remote_control", fallback=True),
**extra_celery_config,
**(extra_celery_config if isinstance(extra_celery_config, dict) else {}),
}


Expand Down
2 changes: 1 addition & 1 deletion providers/src/airflow/providers/celery/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ config:
version_added: ~
type: string
example: ~
default: "{}"
default: "{{}}"
celery_broker_transport_options:
description: |
This section is for specifying options which can be passed to the
Expand Down
2 changes: 1 addition & 1 deletion providers/tests/celery/executors/test_celery_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,4 +407,4 @@ def test_celery_extra_celery_config_loaded_from_string():

# reload celery conf to apply the new config
importlib.reload(default_celery)
assert default_celery.DEFAULT_CELERY_CONFIG["extra_celery_config"] == {"worker_max_tasks_per_child": 10}
assert default_celery.DEFAULT_CELERY_CONFIG["extra_celery_config"] == 10

0 comments on commit f468a82

Please sign in to comment.