3rd_fix download
This commit is contained in:
13
check_job_user.py
Normal file
13
check_job_user.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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('任務不存在')
|
||||
|
Reference in New Issue
Block a user