Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #87 from zenaton/feature/schedule_custom_id
Browse files Browse the repository at this point in the history
Added custom_id argument for workflow schedule.
  • Loading branch information
MrYawe authored Sep 18, 2019
2 parents 58ae096 + 6e4a63b commit 2986c9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- Added missing documentation for serialization
- Added missing documentation for serialization.
- Added `custom_id` argument for workflow schedule.

### Fixed

Expand Down
1 change: 1 addition & 0 deletions lib/zenaton/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def create_workflow_schedule_input(flow, cron)
'intentId' => SecureRandom.uuid,
'environmentName' => @app_env,
'cron' => cron,
'customId' => parse_custom_id_from(flow),
'workflowName' => class_name(flow),
'canonicalName' => canonical_name(flow) || class_name(flow),
'programmingLanguage' => PROG.upcase,
Expand Down
2 changes: 2 additions & 0 deletions spec/zenaton/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
'intentId' => uuid,
'environmentName' => nil,
'cron' => cron,
'customId' => nil,
'workflowName' => 'FakeWorkflow1',
'canonicalName' => 'FakeWorkflow1',
'programmingLanguage' => 'RUBY',
Expand All @@ -329,6 +330,7 @@
'intentId' => uuid,
'environmentName' => nil,
'cron' => cron,
'customId' => nil,
'workflowName' => 'FakeWorkflow2',
'canonicalName' => 'FakeVersion',
'programmingLanguage' => 'RUBY',
Expand Down

0 comments on commit 2986c9a

Please sign in to comment.