from .task import TaskRunner, task


class PingRunner(TaskRunner):
    pass


@task
def ping(runner, node_db):
    runner.request(
        url="{}/ping".format(node_db.hub_url),
        data=dict(node_id=node_db.id)
    )
