Files
Document_Translator/check_job_user.py
2025-09-02 16:47:16 +08:00

14 lines
427 B
Python

import sys, os
sys.path.insert(0, os.path.join(os.getcwd(), 'app'))
from app import create_app
from app.models.job import TranslationJob
app = create_app()
with app.app_context():
job = TranslationJob.query.filter_by(job_uuid='485e0fdc-75fb-4b5a-b44b-3531951200a1').first()
if job:
print(f'任務 user_id: {job.user_id}')
print(f'任務狀態: {job.status}')
else:
print('任務不存在')