2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
11 out = arvados.crunch.TaskOutputDir()
13 string = open(__file__).read()
14 with open(os.path.join(out.path, 'example.out'), 'w') as f:
16 with open(os.path.join(out.path, 'example.out.SHA1'), 'w') as f:
17 f.write(hashlib.sha1(string).hexdigest() + "\n")
19 arvados.current_task().set_output(out.manifest_text())