Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Ability to list and cancel running (and queued) actions of bubuku #64

Merged
merged 3 commits into from
Sep 21, 2016

Conversation

antban
Copy link
Contributor

@antban antban commented Sep 13, 2016

Closes #61 #62

_print_table(table)


@actions.command('delete', help='List all the actions on broker(s)')
Copy link
Contributor

@adyach adyach Sep 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help is incorrect

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@click.option('--action', type=click.STRING,
help='Action to delete')
@click.option('--broker', type=click.STRING,
help='Broker id to list actions on. By default all brokers are enumerated')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help is incorrect

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed ff19b75

@@ -100,6 +102,91 @@ def swap_partitions(threshold: int):
RemoteCommandExecutorCheck.register_fatboy_slim(zookeeper, threshold_kb=threshold)


@cli.group(name='actions', help='Work with running actions')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-stepanov I don't fully get the question. It's group description if you run bubuku-cli actions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does group description do?

finish = cur_time + (0.1 if timeout <= 0 else timeout)
while cur_time < finish:
try:
commnad = __COMMAND_QUEUE.get(block=True, timeout=finish - cur_time)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commnad

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-stepanov
Copy link
Contributor

:shipit:

@antban antban merged commit 88dae0c into master Sep 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants