Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_queue doesn't like the embed_last_unused_offers option #220

Closed
mtbentley opened this issue Oct 12, 2017 · 0 comments
Closed

list_queue doesn't like the embed_last_unused_offers option #220

mtbentley opened this issue Oct 12, 2017 · 0 comments

Comments

@mtbentley
Copy link
Contributor

It looks like a model needs to be updated to know about the last_unused_offers parameter.

From trying to use it in paasta:

  File "/usr/bin/paasta_serviceinit", line 200, in main
    client=clients.marathon(),
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/paasta_tools/marathon_serviceinit.py", line 459, in perform_command
    paasta_print(status_marathon_job(service, instance, app_id, normal_instance_count, client))
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/paasta_tools/marathon_serviceinit.py", line 147, in status_marathon_job
    status = marathon_tools.get_marathon_app_deploy_status(client, app_id)
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/paasta_tools/marathon_tools.py", line 601, in get_marathon_app_deploy_status
    is_overdue, backoff_seconds = get_app_queue_status(client, app_id)
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/paasta_tools/marathon_tools.py", line 978, in get_app_queue_status
    app_queue = get_app_queue(client, app_id)
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/paasta_tools/marathon_tools.py", line 962, in get_app_queue
    app_queue = client.list_queue(embed_last_unused_offers=True)
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/marathon/client.py", line 687, in list_queue
    return self._parse_response(response, MarathonQueueItem, is_list=True, resource_name='queue')
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/marathon/client.py", line 72, in _parse_response
    return [clazz.from_json(resource) for resource in target]
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/marathon/client.py", line 72, in <listcomp>
    return [clazz.from_json(resource) for resource in target]
  File "/opt/venvs/paasta-tools/lib/python3.6/site-packages/marathon/models/base.py", line 43, in from_json
    return cls(**{to_snake_case(k): v for k, v in list(attributes.items())})
TypeError: __init__() got an unexpected keyword argument 'last_unused_offers'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant