just looking over the db here. i noticed that all of the scripts in here are showing “Status: Draft”. Not sure if that’s normal or possibly related.
Below is my simple test script’s DB data:
{
"_id": {"$numberLong": "19"},
"Name": "Job_Schedule_Test.ps1",
"CreatedTime": {"$date": "2020-11-05T22:43:52.2540000Z"},
"ManualTime": 0.0,
"Content": "need_to_hide_for_security",
"Status": "Draft",
"FullPath": "Job_Schedule_Test.ps1",
"ErrorAction": "SilentlyContinue",
"InformationAction": "Continue",
"Verbose": false,
"Debug": false,
"DisableManualInvocation": false,
"MaxHistory": 100
}
also, here’s the data from the Schedule table in the DB:
[
{
"_id": {"$numberLong": "8"},
"Cron": "0 */4 * * *",
"NextExecution": {"$date": "0001-01-01T05:00:00.0000000Z"},
"Script":
{
"$id": {"$numberLong": "17"},
"$ref": "script"
},
"TimeZoneString": "America/New_York",
"Continuous": false,
"Delay": {"$numberLong": "0"},
"Environment": "5.1.17763.1007",
"Valid": true
},
{
"_id": {"$numberLong": "12"},
"Cron": "*/30 * * * *",
"NextExecution": {"$date": "0001-01-01T05:00:00.0000000Z"},
"Script":
{
"$id": {"$numberLong": "3"},
"$ref": "script"
},
"TimeZoneString": "America/New_York",
"Continuous": false,
"Delay": {"$numberLong": "0"},
"Valid": true
},
{
"_id": {"$numberLong": "14"},
"Cron": "*/5 * * * *",
"NextExecution": {"$date": "0001-01-01T05:00:00.0000000Z"},
"Script":
{
"$id": {"$numberLong": "19"},
"$ref": "script"
},
"TimeZoneString": "America/New_York",
"Continuous": false,
"Delay": {"$numberLong": "0"},
"Valid": true
}
]