Skip to content

Commit

Permalink
Give myst endpoint extra timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Sep 7, 2024
1 parent 35a87a9 commit 9ed526c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/neurolibre_celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,7 @@ def preprint_build_pdf_draft(self, payload):
gh_template_respond(github_client,"failure",payload['task_title'], payload['review_repository'],payload['issue_id'],task_id,payload['comment_id'], f"{res['message']}")
self.update_state(state=states.FAILURE, meta={'exc_type':f"{JOURNAL_NAME} celery exception",'exc_message': "Custom",'message': res['message']})


@celery_app.task(bind=True)
@celery_app.task(bind=True, soft_time_limit=300, time_limit=1000)
def preview_build_myst_task(self, screening_dict):
task = BaseNeuroLibreTask(self, screening_dict)
task.start("Started MyST build.")
Expand Down

0 comments on commit 9ed526c

Please sign in to comment.