Skip to content

Commit

Permalink
remove tornado comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed Jul 16, 2024
1 parent ddd625b commit 4bb67e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firecrestspawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import firecrest as f7t
from enum import Enum
from jinja2 import Template
# from tornado import gen
from jupyterhub.spawner import Spawner
from traitlets import (
Any, Integer, Unicode, Float, default
Expand Down Expand Up @@ -275,13 +274,16 @@ async def query_job_status(self):
return JobStatus.NOTFOUND

async def cancel_batch_job(self):
"""Cancel the job running the notebooks sever"""

self.log.info(f"Cancelling job {self.job_id}")
client = await self.get_firecrest_client()
self.log.info('firecREST: Canceling job')
await client.cancel(self.host, self.job_id)

def load_state(self, state):
"""load job_id from state"""
"""load `job_id` from state"""

super(FirecRESTSpawnerBase, self).load_state(state)
self.job_id = state.get('job_id', '')
self.job_status = state.get('job_status', '')
Expand Down

0 comments on commit 4bb67e2

Please sign in to comment.