<gh_stars>0
#!/usr/bin/env python3
# coding: utf-8
import os
import tar
import uuid
import argparse
import celery_worker


parser = argparse.ArgumentParser()
parser.add_argument('folder')
parser.add_argument('entrypoint')
args = parser.parse_args()

f = tar.make_tar_file(args.folder, mode='rb')
tar_base64 = tar.bin_to_b64(f.read())
task_id = str(uuid.uuid4())

res = celery_worker.execute.delay(task_id, tar_base64, args.entrypoint)
print(res.get())
#!/usr/bin/env python3
# coding: utf-8
import os
import tar
import uuid
import argparse
import celery_worker


parser = argparse.ArgumentParser()
parser.add_argument('folder')
parser.add_argument('entrypoint')
args = parser.parse_args()

f = tar.make_tar_file(args.folder, mode='rb')
tar_base64 = tar.bin_to_b64(f.read())
task_id = str(uuid.uuid4())

res = celery_worker.execute.delay(task_id, tar_base64, args.entrypoint)
print(res.get())
#!/usr/bin/env python3 # coding: utf-8