Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /theonlyamos_runit-server /runit_server /routers /functions.py
| from flask import Blueprint, jsonify, request | |
| from ..models import Project | |
| from runit import RunIt | |
| import os | |
| from dotenv import load_dotenv | |
| from ..constants import ( | |
| PROJECTS_DIR | |
| ) | |
| load_dotenv() | |
| functions = Blueprint('functions', __name__) | |
| def run(project_id, function): | |
| if (os.path.isdir(os.path.join(PROJECTS_DIR, project_id))): | |
| #os.chdir(project.path) | |
| result = RunIt.start(project_id, function) | |
| os.chdir(os.getenv('RUNIT_HOMEDIR')) | |
| return jsonify(result) | |
| return RunIt.notfound() | |
Xet Storage Details
- Size:
- 591 Bytes
- Xet hash:
- afcf21807a4e6a3cbd535e907c3a11d414893131d6d392c3781f659950c457da
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.