ecschedule icon indicating copy to clipboard operation
ecschedule copied to clipboard

Proposal: adding `taskOverrides` properties.

Open ichikawa4379 opened this issue 8 months ago • 2 comments

Hello, I'm currently using ecschedule in a project. Thank you for such useful tool!

I am hoping a feature enhancement to support taskOverrides in the following way:

Adding taskOverrides to Schedule Definitions: Add a taskOverrides section to each schedule definition in the ecschedule YAML configuration file, allowing the resources to override (CPU, Memory, etc.). cf. https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html

```yaml
version: 1
schedules:
  my-batch-job:
    schedule: "cron(0 2 * * ? *)"
    taskDefinition: "batch-task:1"
    containerOverrides:
        - name: "batch-container"
    taskOverrides: // Desired feature
       -  cpu: 1024
          memory: 2048
```

Thank you for your consideration.

ichikawa4379 avatar May 15 '25 06:05 ichikawa4379

I'll try to create a PR that updates only the cpu and memory fields of taskOverride as a minimum scope. Please wait a moment!

ichikawa4379 avatar May 27 '25 01:05 ichikawa4379

Sorry for not responding.

It's good that resource settings can be overridden. With fewer resources, a few batches can be run slowly.

Thank you for creating the pull request. I'm excited about it.

Songmu avatar May 27 '25 02:05 Songmu

@Songmu I created PR for this issue. I hope you for checking it! https://github.com/Songmu/ecschedule/pull/133

yy-at-here avatar Jun 29 '25 07:06 yy-at-here

Resolved at #133. Thank you for contributing!

Songmu avatar Nov 18 '25 13:11 Songmu