Skip to content

Commit

Permalink
fix: storage_size_gb が未指定のとき、RunTask へのパラメータは変更がないように
Browse files Browse the repository at this point in the history
  • Loading branch information
morikiyo committed Oct 4, 2024
1 parent ffe5f80 commit eaae6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sg_fargate_rails/event_bridge_schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EventBridgeSchedule

attr_reader :name

def initialize(name:, cron:, command:, container_type: 'small', storage_size_gb: DEFAULT_STORAGE_SIZE_GB, use_bundler: true)
def initialize(name:, cron:, command:, container_type: 'small', storage_size_gb: nil, use_bundler: true)
@name = name
@cron = cron
@command = command
Expand Down Expand Up @@ -92,7 +92,7 @@ def state_machine_input_json
type = convert_container_type
{
**type,
"storage_size_gb": @storage_size_gb,
"storage_size_gb": @storage_size_gb || DEFAULT_STORAGE_SIZE_GB,
"command": container_command,
}.to_json
end
Expand Down

0 comments on commit eaae6ee

Please sign in to comment.