Skip to content

Commit

Permalink
instance_class default to B2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed May 1, 2024
1 parent d536c56 commit 40880ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def build_meta(self, recipe1, onlyRecipe):
try:
pdate = recipe1.publication_date()
except Exception as e:
default_log.warning('recipe1.publication_date error: {e}')
default_log.warning(f'recipe1.publication_date error: {e}')
pdate = self.user.local_time()
timefmt = recipe1.timefmt.strip()
if timefmt and self.user.book_cfg('title_fmt'):
Expand Down
6 changes: 4 additions & 2 deletions application/lib/calibre/ebooks/conversion/plumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ def run(self):
try:
self.oeb = self.input_plugin(self.input_, self.opts, self.input_fmt, self.log, tdir, fs)
except Exception as e:
#self.log.warning('Failed to execute input plugin: {}'.format(str(e)))
self.log.warning('Failed to execute input plugin: {}'.format(traceback.format_exc()))
if 'All feeds are empty, aborting.' in str(e):
self.log.warning('Failed to execute input plugin: {}'.format(str(e)))
else:
self.log.warning('Failed to execute input plugin: {}'.format(traceback.format_exc()))
fs.clear()
return

Expand Down
2 changes: 1 addition & 1 deletion worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ service: worker
#B4: 1536MB/2.4GHz/manual_scaling
#B4_1G: 3072MB/2.4GHz/manual_scaling
#B8: 3072MB/4.8GHz/manual_scaling
instance_class: B4
instance_class: B2
basic_scaling:
max_instances: 2
idle_timeout: 30m
Expand Down

0 comments on commit 40880ba

Please sign in to comment.