Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💤 Visual Studio Code not idling #4938

Closed
jacobwoffenden opened this issue Aug 8, 2024 · 0 comments
Closed

💤 Visual Studio Code not idling #4938

jacobwoffenden opened this issue Aug 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jacobwoffenden
Copy link
Member

jacobwoffenden commented Aug 8, 2024

Describe the bug.

My Visual Studio Code instance isn't idling

Screenshot 2024-08-08 at 20 19 09

To Reproduce

  1. Launch Visual Studio Code

Expected Behaviour

It idles as per the configured time in the idling service

Additional context

ValueError: invalid literal for int() with base 10: ''
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-08-16 08:26:52.817680+00:00 (in 9.999445 seconds)
INFO:apscheduler.executors.default:Running job "check_activity (trigger: interval[0:00:10], next run at: 2024-08-16 08:26:52 UTC)" (scheduled at 2024-08-16 08:26:42.817680+00:00)
ERROR:apscheduler.executors.default:Job "check_activity (trigger: interval[0:00:10], next run at: 2024-08-16 08:26:52 UTC)" raised an exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app.py", line 86, in check_activity
    if  (int(time.time()-int(MAX_IDLE_TIME)) > int(last_active.text)):
                         ^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

MAX_IDLE_TIME has no value

    - name: IDLE_URL
      value: jacobwoffenden-vscode.tools.analytical-platform.service.justice.gov.uk
    - name: MAX_IDLE_TIME
    - name: SCHEDULER_SERVICE
      value: vscode-jacobwoffenden-vs-scheduler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants