async-job-adapter-active_job 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 180cb5494a48806a8fed0606cab10241c1de1ffd3bd5fb67f401362e5a9a6428
4
- data.tar.gz: cbc2e1c64b6e6fedbeaab13377725741dc757e2643419181e53440c308d07243
3
+ metadata.gz: 36873f3cd52e06462bdd73217a4176fdaf7cd458f2da0316bfa69519d1bdca99
4
+ data.tar.gz: '0694a274303bad0cc146ed531cbe10358416f0e46d74a5126a40563e9813a1cc'
5
5
  SHA512:
6
- metadata.gz: 33f8aee5982c62455adf93e4128bfc6c02b5b94313aa2b48fa47d3bccbd7293f1eb1f76ea190671a5eea28aa949b71a98c1d56fab5a5b00b74e2150a642d7cf7
7
- data.tar.gz: 3775afc93c99661870ecfce968ac0e02133de75dcfc445d0219caf39244755b1dc67c0b579d629622816bd0c96c1b85b5dfe528690063270c0278bc7599a8cde
6
+ metadata.gz: 244e4b18674fd7cdeb6680352bf154a298c0aa7efaa24a84aa850119f54ce231878e7f91d77c98c78f6222b60610583cd7cff775f66c367f982c376712b240c3
7
+ data.tar.gz: 259a097e1931650b0d77014db832887876cc837babf99a193776b024149d6372323931be057f432f6ca141c3f16fd5c8e2ce54b72626dcafe8cda7ab0b304b55
checksums.yaml.gz.sig CHANGED
@@ -1,5 +1,3 @@
1
- y�� ��&>�F
2
- �ͅ_E��.J��tA��H@�TJ
3
- V~W��ś#)���V&p�����$��r&��!��Lc�aa*y��/W�N�^U�g���h�0�v�O��ng3�S7ӆ��7'o��9k�f��k���vgY��@������'f4!)��Ɉ��چ�SQ[���ң�@�[�2;���Bm��EM8I�H�����Ef��g,�xf8�|c-�0���B��Ũ6��ɼ��,9��Akj��f? C��>�b��}��j� ��=J͋Tf;�8Q��8�0���iX��j�/6
4
- ��
5
- T}�T����% �����y%b���Ӭ:<�H?C���[������,�RO�G��O��
1
+ ���g�h�` Ġ����orN�?_*Z�Qe���
2
+ ���s�8]9Q���%�Ψ�L,�&�.Rs$�ŊY4ޅS���� ��-��_JaG �_�؟�
3
+ ��# �fs���kZ�9ؿ���l��Yb���`9R��U�#ߖ�Viݟy�o/�v��Fv���m����W��}<��J��#���d( F�|������f[��T�� .���0twK(6@�wVI]n�=�� xU��Xz��8��0�nÕ[�F����P�2#�I��p������U��3��n{�v����������%4<�4<q|��+/P����Ԓ��@��Y�d��È� u�o����D��V��Ry91w|�{�}�$
@@ -17,8 +17,14 @@ module Async
17
17
 
18
18
  # Execute the given job.
19
19
  def call(job)
20
- # Console.debug(self, "Executing job...", id: job["job_id"])
21
- ::ActiveJob::Base.execute(job)
20
+ Console.debug(self, "Executing job...", job: job)
21
+ begin
22
+ ::ActiveJob::Base.execute(job)
23
+ rescue => error
24
+ # Error handling is done by the job itself.
25
+ # Ignore the error here, as ActiveJob has already logged unhandled errors.
26
+ # Console::Event::Failure.for(error).emit(self, "Failed to execute job!", job: job)
27
+ end
22
28
 
23
29
  @delegate&.call(job)
24
30
  end
@@ -15,14 +15,14 @@ module Async
15
15
 
16
16
  # Enqueue a job for processing.
17
17
  def enqueue(job)
18
- # Console.debug(self, "Enqueueing job...", id: job.job_id)
18
+ Console.debug(self, "Enqueueing job...", id: job.job_id)
19
19
  @delegate.call(serialize(job))
20
20
  end
21
21
 
22
22
  # Enqueue a job for processing at a specific time.
23
23
  def enqueue_at(job, timestamp)
24
24
  # We assume the given timestamp is the same as `job.scheduled_at` which is true in every case we've seen so far.
25
- # Console.debug(self, "Scheduling job...", id: job.job_id, scheduled_at: job.scheduled_at)
25
+ Console.debug(self, "Scheduling job...", id: job.job_id, scheduled_at: job.scheduled_at)
26
26
  @delegate.call(serialize(job))
27
27
  end
28
28
 
@@ -7,7 +7,7 @@ module Async
7
7
  module Job
8
8
  module Adapter
9
9
  module ActiveJob
10
- VERSION = "0.11.0"
10
+ VERSION = "0.12.0"
11
11
  end
12
12
  end
13
13
  end
data.tar.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- tf�ݽ_v4��b��>��~Tx_�����s� �}���ph�ꇝ\��%�4yv`0�M��-�F�ʉ+��m @є�����N���E�]$ݾ��:m��� X����XB?��@�O`�`�Cu��L�ďuM����O���ck�$i��[��W�����X�k�p�OWNJ��J5��0���
2
- �-�l��&���؜ds��r;v(O�Cn�#E�,o'h-z\�"Q��\q{xwH����2
1
+ hwڌw}��μ|��%�Fσc�:��(��������+ߟ�\���i����q��;ʳ={ЌoT����h���;{%��Klw���X�H��� # Y��:�͕7�<�Z^��Tya
2
+ ���O�,�c“8�)3����0N�h��F�����A�� ���SZ/��nFdB���� 6?_ۂ�8%�*��g�q��7|�7Le6�=̋AQ��8N�~�����ƒI/,SB7t�k�b�#$�e��E�a�IK�`�
3
+ ٴ���:�T�#$�`2j_�CeN�a�����K���J��
4
+ ~d>�(:^����!]�Q�b�ڎ���`E�,� �����Lco����Y���y{1@��$��3P]���h�h\�>љI�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-job-adapter-active_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2024-08-08 00:00:00.000000000 Z
40
+ date: 2024-08-09 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async-job
metadata.gz.sig CHANGED
Binary file