Exemple #1
0
 def put(self, key, value):
     """
     Stores an out-of-band result *value* with the key *key*. Key must be unique in
     this job. Maximum key length is 256 characters. Only characters in the set
     ``[a-zA-Z_\-:0-9@]`` are allowed in the key.
     """
     if DDFS.safe_name(key) != key:
         raise DiscoError("OOB key contains invalid characters (%s)" % key)
     util.save_oob(self.master, self.jobname, key, value)
Exemple #2
0
 def put(self, key, value):
     """
     Stores an out-of-band result *value* with the key *key*. Key must be unique in
     this job. Maximum key length is 256 characters. Only characters in the set
     ``[a-zA-Z_\-:0-9@]`` are allowed in the key.
     """
     if DDFS.safe_name(key) != key:
         raise DiscoError("OOB key contains invalid characters (%s)" % key)
     util.save_oob(self.master, self.jobname, key, value)
Exemple #3
0
    def put(self, key, value):
        """
        Stores an out-of-band result *value* (bytes) with the key *key*.

        Key must be unique in this job.
        Maximum key length is 256 characters.
        Only characters in the set ``[a-zA-Z_\-:0-9@]`` are allowed in the key.
        """
        from disco.ddfs import DDFS
        from disco.util import save_oob
        from disco.error import DiscoError
        if DDFS.safe_name(key) != key:
            raise DiscoError("OOB key contains invalid characters ({0})".format(key))
        save_oob(self.master, self.jobname, key, value)
Exemple #4
0
    def put(self, key, value):
        """
        Stores an out-of-band result *value* (bytes) with the key *key*.

        Key must be unique in this job.
        Maximum key length is 256 characters.
        Only characters in the set ``[a-zA-Z_\-:0-9@]`` are allowed in the key.
        """
        from disco.ddfs import DDFS
        from disco.util import save_oob
        from disco.error import DiscoError
        if DDFS.safe_name(key) != key:
            raise DiscoError("OOB key contains invalid characters ({0})".format(key))
        save_oob(self.master, self.jobname, key, value)