qcodes/utils/slack.py
def add_task(self, command, *args, channel, **kwargs):
        """
        Add a task to self.tasks, which will be executed during each update
        Args:
            command: Task command.
            *args: Additional args for command.
            channel: Slack channel (can also be IM channel).
            **kwargs: Additional kwargs for particular.

        Returns:
            None.
        """
        if command in self.task_commands:
            self.slack.chat_postMessage(
                text=f'Added task "{command}"',
                channel=channel)
            func = self.task_commands[command]
            self.tasks.append(partial(func, *args, channel=channel, **kwargs))
        else:
            self.slack.chat_postMessage(
                text=f'Task command {command} not understood',
                channel=channel)

        Add a task to self.tasks, which will be executed during each update
        Args:
            command: Task command.
            *args: Additional args for command.
            channel: Slack channel (can also be IM channel).
            **kwargs: Additional kwargs for particular.

        Returns:
            None.
        
Add a task to self.tasks, which will be executed during each update
Add a task to self . tasks which will be executed during each update
def add_task(self, command, *args, channel, **kwargs):
        if command in self.task_commands:
            self.slack.chat_postMessage(
                text=f'Added task "{command}"',
                channel=channel)
            func = self.task_commands[command]
            self.tasks.append(partial(func, *args, channel=channel, **kwargs))
        else:
            self.slack.chat_postMessage(
                text=f'Task command {command} not understood',
                channel=channel)
def add_task ( self , command , * args , channel , ** kwargs ) : if command in self . task_commands : self . slack . chat_postMessage ( text = f'Added task "{command}"' , channel = channel ) func = self . task_commands [ command ] self . tasks . append ( partial ( func , * args , channel = channel , ** kwargs ) ) else : self . slack . chat_postMessage ( text = f'Task command {command} not understood' , channel = channel )
Add a task to self.tasks, which will be executed during each update
Add a task to self . tasks which will be executed during each update
"""
        Add a task to self.tasks, which will be executed during each update
        Args:
            command: Task command.
            *args: Additional args for command.
            channel: Slack channel (can also be IM channel).
            **kwargs: Additional kwargs for particular.

        Returns:
            None.
        """
None
self
command
None
channel
Slack channel (can also be IM channel).
Slack channel ( can also be IM channel ) .
*args
Additional args for command.
Additional args for command .
**kwargs
Additional kwargs for particular.
Additional kwargs for particular .