diff --git a/ecs_deploy/ecs.py b/ecs_deploy/ecs.py
index 3cc2633..34b7156 100644
--- a/ecs_deploy/ecs.py
+++ b/ecs_deploy/ecs.py
@@ -55,6 +55,12 @@ class EcsClient(object):
         )
 
     def update_service(self, cluster, service, desired_count, task_definition):
+        if desired_count is None:
+            return self.boto.update_service(
+                cluster=cluster,
+                service=service,
+                taskDefinition=task_definition
+            )
         return self.boto.update_service(
             cluster=cluster,
             service=service,
@@ -77,9 +83,6 @@ class EcsService(dict):
         self._cluster = cluster
         super(EcsService, self).__init__(service_definition, **kwargs)
 
-    def set_desired_count(self, desired_count):
-        self[u'desiredCount'] = desired_count
-
     def set_task_definition(self, task_definition):
         self[u'taskDefinition'] = task_definition.arn
 
@@ -385,11 +388,11 @@ class EcsAction(object):
     def deregister_task_definition(self, task_definition):
         self._client.deregister_task_definition(task_definition.arn)
 
-    def update_service(self, service):
+    def update_service(self, service, desired_count=None):
         response = self._client.update_service(
             cluster=service.cluster,
             service=service.name,
-            desired_count=service.desired_count,
+            desired_count=desired_count,
             task_definition=service.task_definition
         )
         return EcsService(self._cluster_name, response[u'service'])
@@ -451,8 +454,7 @@ class DeployAction(EcsAction):
 class ScaleAction(EcsAction):
     def scale(self, desired_count):
         try:
-            self._service.set_desired_count(desired_count)
-            return self.update_service(self._service)
+            return self.update_service(self._service, desired_count)
         except ClientError as e:
             raise EcsError(str(e))
 

ECS service Daemon mode
Hello, i set the Service in "DAEMON" mode meaning the # of desired tasks is Automatic (Top right corner at the screen-shot)

![screenshot from 2018-07-02 13-16-44](https://user-images.githubusercontent.com/11332517/42158871-727414ac-7dfa-11e8-8443-8557f4d4aad9.png)


However i'm getting an error when deploying a new tag


**Command**

`ecs deploy --region ${AWS_REGION} ${CLUSTER_NAME} ${ECS_SERVICE_NAME} --tag ${CI_COMMIT_SHA} --timeout 1200`

**Error:**

```
Creating new task definition revision
Successfully created revision: 6

Updating service
An error occurred (InvalidParameterException) when calling the UpdateService operation: The daemon scheduling strategy does not support a desired count for services. Remove the desired count value and try again

```
i must be missing something here
can you please advise on this ?

diff --git a/tests/test_ecs.py b/tests/test_ecs.py
index dd3aab5..7f97e09 100644
--- a/tests/test_ecs.py
+++ b/tests/test_ecs.py
@@ -220,12 +220,6 @@ def test_service_init(service):
     assert service[u'taskDefinition'] == TASK_DEFINITION_ARN_1
 
 
-def test_service_set_desired_count(service):
-    assert service.desired_count == DESIRED_COUNT
-    service.set_desired_count(5)
-    assert service.desired_count == 5
-
-
 def test_service_set_task_definition(service, task_definition):
     assert service.task_definition == TASK_DEFINITION_ARN_1
     service.set_task_definition(task_definition)
@@ -610,7 +604,7 @@ def test_update_service(client, service):
     client.update_service.assert_called_once_with(
         cluster=service.cluster,
         service=service.name,
-        desired_count=service.desired_count,
+        desired_count=None,
         task_definition=service.task_definition
     )
 
@@ -647,7 +641,7 @@ def test_is_not_deployed_with_more_than_one_deployment(client, service):
 def test_is_deployed_if_no_tasks_should_be_running(client, service):
     client.list_tasks.return_value = RESPONSE_LIST_TASKS_0
     action = EcsAction(client, CLUSTER_NAME, SERVICE_NAME)
-    service.set_desired_count(0)
+    service[u'desiredCount'] = 0
     is_deployed = action.is_deployed(service)
     assert is_deployed is True
 
@@ -702,7 +696,6 @@ def test_scale_action(client):
     action = ScaleAction(client, CLUSTER_NAME, SERVICE_NAME)
     updated_service = action.scale(5)
 
-    assert action.service.desired_count == 5
     assert isinstance(updated_service, EcsService)
 
     client.describe_services.assert_called_once_with(

pip install -e .
parse_log_pytest
pytest
pytest pytest-cov pytest-mock mock requests
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
boto3==1.23.10
botocore==1.26.10
certifi==2021.5.30
charset-normalizer==2.0.12
click==6.7
coverage==6.2
-e git+https://github.com/fabfuel/ecs-deploy.git@0da56c64512f0d312cb3c4585325d7afb8fce46d#egg=ecs_deploy
future==1.0.0
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jmespath==0.10.0
mock==5.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-cov==4.0.0
pytest-mock==3.6.1
python-dateutil==2.9.0.post0
requests==2.27.1
s3transfer==0.5.2
six==1.17.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: ecs-deploy
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - boto3==1.23.10
      - botocore==1.26.10
      - charset-normalizer==2.0.12
      - click==6.7
      - coverage==6.2
      - future==1.0.0
      - idna==3.10
      - jmespath==0.10.0
      - mock==5.2.0
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - python-dateutil==2.9.0.post0
      - requests==2.27.1
      - s3transfer==0.5.2
      - six==1.17.0
      - tomli==1.2.3
      - urllib3==1.26.20
prefix: /opt/conda/envs/ecs-deploy

tests/test_ecs.py::test_update_service
tests/test_ecs.py::test_service_init tests/test_ecs.py::test_service_set_task_definition tests/test_ecs.py::test_service_name tests/test_ecs.py::test_service_deployment_created_at tests/test_ecs.py::test_service_deployment_updated_at tests/test_ecs.py::test_service_deployment_created_at_without_deployments tests/test_ecs.py::test_service_deployment_updated_at_without_deployments tests/test_ecs.py::test_service_errors tests/test_ecs.py::test_service_older_errors tests/test_ecs.py::test_task_family tests/test_ecs.py::test_task_containers tests/test_ecs.py::test_task_container_names tests/test_ecs.py::test_task_volumes tests/test_ecs.py::test_task_revision tests/test_ecs.py::test_task_no_diff tests/test_ecs.py::test_task_image_diff tests/test_ecs.py::test_task_set_tag tests/test_ecs.py::test_task_set_image tests/test_ecs.py::test_task_set_environment tests/test_ecs.py::test_task_set_image_for_unknown_container tests/test_ecs.py::test_task_set_command tests/test_ecs.py::test_task_set_command_for_unknown_container tests/test_ecs.py::test_task_get_overrides tests/test_ecs.py::test_task_get_overrides_with_command tests/test_ecs.py::test_task_get_overrides_with_environment tests/test_ecs.py::test_task_get_overrides_with_commandand_environment tests/test_ecs.py::test_task_get_overrides_with_commandand_environment_for_multiple_containers tests/test_ecs.py::test_task_get_overrides_command tests/test_ecs.py::test_task_get_overrides_environment tests/test_ecs.py::test_task_definition_diff tests/test_ecs.py::test_client_init tests/test_ecs.py::test_client_describe_services tests/test_ecs.py::test_client_describe_task_definition tests/test_ecs.py::test_client_describe_unknown_task_definition tests/test_ecs.py::test_client_list_tasks tests/test_ecs.py::test_client_describe_tasks tests/test_ecs.py::test_client_register_task_definition tests/test_ecs.py::test_client_deregister_task_definition tests/test_ecs.py::test_client_update_service tests/test_ecs.py::test_client_run_task tests/test_ecs.py::test_ecs_action_init tests/test_ecs.py::test_ecs_action_init_with_invalid_cluster tests/test_ecs.py::test_ecs_action_init_with_invalid_service tests/test_ecs.py::test_ecs_action_init_without_credentials tests/test_ecs.py::test_ecs_action_get_service tests/test_ecs.py::test_ecs_action_get_current_task_definition tests/test_ecs.py::test_update_task_definition tests/test_ecs.py::test_deregister_task_definition tests/test_ecs.py::test_is_deployed tests/test_ecs.py::test_is_not_deployed_with_more_than_one_deployment tests/test_ecs.py::test_is_deployed_if_no_tasks_should_be_running tests/test_ecs.py::test_is_not_deployed_if_no_tasks_running tests/test_ecs.py::test_get_running_tasks_count tests/test_ecs.py::test_get_running_tasks_count_new_revision tests/test_ecs.py::test_deploy_action tests/test_ecs.py::test_scale_action tests/test_ecs.py::test_run_action tests/test_ecs.py::test_run_action_run
ecs_deploy/ecs.py
ecs_deploy/ecs.py