question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The scheduler only starts but doesn't stop instances

See original GitHub issue

I used the latest template to create the EC2 Scheduler with stackname: EC2Scheduler and no matter how I set up my office-time, the scheduler only starts the instances (if I manually stop them to test) but never stops them.

I changed the endtime to different time, lambda execution to every 1 minute, 2 minutes, etc.

get-item

{
    "Item": {
        "begintime": {
            "S": "08:00"
        },
        "description": {
            "S": "Office hours"
        },
        "endtime": {
            "S": "18:00"
        },
        "weekdays": {
            "SS": [
                "mon-fri"
            ]
        },
        "name": {
            "S": "office-hours"
        },
        "type": {
            "S": "period"
        }
    }
}

{
    "Item": {
        "use_metrics": {
            "BOOL": false
        },
        "override_status": {
            "S": "running"
        },
        "timezone": {
            "S": "America/New_York"
        },
        "description": {
            "S": "Instances running"
        },
        "periods": {
            "SS": [
                "office-hours"
            ]
        },
        "name": {
            "S": "running"
        },
        "type": {
            "S": "schedule"
        }
    }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
arieleeuwcommented, Oct 11, 2019
override_status": {
            "S": "running"
}

overwrites what’s in the periods. Instances tagged with this schedule will always be running.

0reactions
nguyendvietcommented, Oct 15, 2019

I confirm that removing the override_status works for me. My instances now can be stopped.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The scheduler only starts but doesn't stop instances · Issue #129
I used the latest template to create the EC2 Scheduler with stackname: EC2Scheduler and no matter how I set up my office-time, the...
Read more >
Task scheduler start a task and shows running, but nothing ...
my schedule job is as simple as open a notepad, and the task scheduler shows my job is running with 0x41301 result.
Read more >
Why is Windows Task Scheduler trying to launch multiple ...
We managed to stop Windows Task Scheduler starting up multiple processes by ticking the option "If the task fails, restart ...
Read more >
Windows Task Scheduler doesn't run last instance - Super User
On the Settings tab at the bottom, it says: If the task is already running, the following rule applies: Stop the existing instance....
Read more >
How do I use Instance Scheduler with CloudFormation to ...
The instances also start at 9 AM and stop at 12 PM on Saturday. Note: Tag keys and values are case sensitive. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found