1

I am using Windows task scheduler with a user that has an AWS profile configuration under C:\Users<username>.aws\configuration (content below)

[default]
s3 =
    max_concurrent_requests = 300
    max_bandwidth = 5000MB/s


[profile BackupProfile]
s3 =
    max_concurrent_requests = 300
    max_bandwidth = 5000MB/s

The redacted script looks like this:

Set-AWSCredential -ProfileName BackupProfile 
Write-S3Object -BucketName xyausdpaisd-bkt -Region ap-south-1 -File $latest.FullName

When running the script manually, I get the expected speed (2Gbps) but when the same script is run with the Scheduled task (same user, as admin), the speed is around (150mbps).

Why is this scheduled task much slower when they are supposed to use the same S3 configuration?

2
  • Have you tried increasing the task priority?
    – Greg Askew
    Jul 18 at 15:00
  • I just did and it worked. Please suggest the answer and I'll mark it. Jul 18 at 15:30

1 Answer 1

2

You can increase the priority of a task in an XML template and create a task with normal or above normal priority.

https://learn.microsoft.com/en-us/windows/win32/taskschd/tasksettings-priority

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .