fanforce-workers 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/version.rb +1 -1
- data/lib/fanforce/workers/workers.rb +3 -3
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                MmNkZDRjOTNhYmMwMGE5NmY1ZGQ0NTA5ZDY0MGZiNzY5MDVkZWNiNw==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                NzUwMDI4YmRhNmM4MzA3YTFkZGQ4Yjg5OWFjYWFlNGQ2ZTM2ZTRjMg==
         | 
| 7 7 | 
             
            !binary "U0hBNTEy":
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                YzZjODM1MjZmM2NjNmM5NGUyMzU0YmE1M2M2OGFiZjMyODExMjUxMzliNmY3
         | 
| 10 | 
            +
                YTBjY2MzOTFlYmUwOWYyNmQzYjFlY2FkYjRhMTViNjYyY2VjNjAxMDYzZGVj
         | 
| 11 | 
            +
                OTVhZWQwNjI3ZmQ2OWQ3MjI2ZWZhNmU1ODIwNTgwMWQ3YmJhZjU=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                NzNmNDBkNWVkYzUyZTI0MDMyZmJkOTZjOGIxYWU1ZDhkNGZiMTM1Y2NjZTU4
         | 
| 14 | 
            +
                OGU3MmM5M2NmMmNjNTY4MTk3NTEzOTdmYjk3MTkwZmZiNzUwYmMwYzM2ZDE2
         | 
| 15 | 
            +
                OGY2YjBkZWZmNmIzZjgyMmE4OWJiZWI3Yzc4NWMwYTE3MTM5ZTQ=
         | 
| @@ -27,7 +27,7 @@ class Fanforce::Workers | |
| 27 27 | 
             
                    details_id: details_id,
         | 
| 28 28 | 
             
                    exception: truncate(error[:exception]),
         | 
| 29 29 | 
             
                    message: truncate(error[:message].to_s),
         | 
| 30 | 
            -
                    params: truncate(error[: | 
| 30 | 
            +
                    params: truncate(error[:params].to_json),
         | 
| 31 31 | 
             
                    errored_at: error[:errored_at],
         | 
| 32 32 | 
             
                    retries: error[:retries],
         | 
| 33 33 | 
             
                    env_vars: truncate(error[:env_vars].to_json),
         | 
| @@ -42,12 +42,12 @@ class Fanforce::Workers | |
| 42 42 |  | 
| 43 43 | 
             
              def error_details(queue_id, details_id)
         | 
| 44 44 | 
             
                cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
         | 
| 45 | 
            -
                MultiJson.load(cache. | 
| 45 | 
            +
                MultiJson.load(cache.value, :symbolize_keys => true)
         | 
| 46 46 | 
             
              end
         | 
| 47 47 |  | 
| 48 48 | 
             
              def retry_error(queue_id, msg_id, details_id)
         | 
| 49 49 | 
             
                cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
         | 
| 50 | 
            -
                cache_data = MultiJson.load(cache. | 
| 50 | 
            +
                cache_data = MultiJson.load(cache.value, :symbolize_keys => true)
         | 
| 51 51 | 
             
                enqueue(queue_id, cache_data[:params], cache_data[:retries] + 1)
         | 
| 52 52 |  | 
| 53 53 | 
             
                cache.delete and iron_mq.queue("#{queue_id}-ERRORS").delete(msg_id)
         |