Jump to content

ScheduledTasks/{id} call CurrentProgressPercentage always at 15%


BillOatman
Go to solution Solved by Luke,

Recommended Posts

BillOatman

I have C# code that runs the RefreshGuide scheduled task, then waits for it to complete by making this call every 5 seconds until it sees a Idle status.

Quote

http://{host}:{port}/emby/ScheduledTasks/{id}?api_key={key}

that I deserialize into this class

    public class Root
    {
        public string Name { get; set; }
        public string State { get; set; }
        public double CurrentProgressPercentage { get; set; }
        public string Id { get; set; }
        public LastExecutionResult LastExecutionResult { get; set; }
        public List<object> Triggers { get; set; }
        public string Description { get; set; }
        public string Category { get; set; }
        public bool IsHidden { get; set; }
        public string Key { get; set; }
    }

butĀ CurrentProgressPercentage always seems to be at 15% from the start until it finishes.

I have noticed that the server dashboard also seems to always be at that percentage as well, probably due to this.

Link to comment
Share on other sites

  • Solution

Hi, yes that task probably just needs to update the % more frequently. Thanks.

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...