Skip to content

Commit

Permalink
Added support for partial payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Sep 16, 2016
1 parent 55ed831 commit 5f96b96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Changelog

## Unreleased
- 2016-09-16
- Added support for partial payloads for analysis jobs items [TODO]
- 2016-09-13
- Updated gems [TODO]()
- Updated gems [6e469cf](https://github.com/QutBioacoustics/baw-server/commit/6e469cf4be7e16ce632f5b380e7c9101fea36bdb)
- 2016-08-10
- Removing support for Ruby 2.2.3 [eac760c](https://github.com/QutBioacoustics/baw-server/commit/eac760c4351131a05fdcce6fdd2dce1e8d0a6568)
- 2016-08-09
Expand Down
3 changes: 2 additions & 1 deletion app/models/analysis_jobs_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ def add_to_queue
error = nil

begin
result = BawWorkers::Analysis::Action.action_enqueue(payload)
# the second argument groups all items in this job together so that their common payload is stored efficiently
result = BawWorkers::Analysis::Action.action_enqueue(payload, analysis_job.created_at.to_i.to_s)

# the assumption here is that result is a unique identifier that we can later use to interrogate the message queue
self.queue_id = result
Expand Down

0 comments on commit 5f96b96

Please sign in to comment.