from core.processor import Processor

import time


class WAIT_SECONDSProcessor(Processor):
    TPL: str = '{"wait_seconds":"5"}'
    DESC: str = '''
        Pause execution for the given number of seconds.

        - wait_seconds: number of seconds to wait (default: "5")
    '''

    def get_category(self) -> str:
        return super().CATE_GENERAL

    def process(self):
        wait_seconds = self.explain_param_as_int('wait_seconds', 0)
        time.sleep(wait_seconds)
