Giter Club home page Giter Club logo

Comments (14)

koudelka avatar koudelka commented on August 12, 2024

Are any of the other examples working for you?

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

Nop ...

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

if you manually queue a job with

{:work_really_hard, [0]} |> Honeydew.async(:my_queue)

does it display anything?

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

It displays nothing

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

You don't even see a %Honeydew.Job{…} struct printed?

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

No.
I wondering if this is normal that when I a do Honeydew.status(:my_queue) the result is

%{queue: %{count: 0, in_progress: 0, suspended: false}, workers: %{}}

Especially the empty workers dict.

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

Hm, you're right, it shouldn't be empty, I don't know why it is.

Can you try installing the elixir/erlang versions specified in .tool_versions?

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

The result of elixir --version is

Erlang/OTP 20 [erts-9.3.3.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]

Elixir 1.7.4 (compiled with Erlang/OTP 19)

is it ok?

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

Sorry about that, looks like I hadn't pushed the file to github. Here's what I'm using:

erlang 21.2.5
elixir 1.8.1

If you pull the changes to the repo, it's easy to install the new elixir/erlang versions with asdf.

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

I installed the 1.8 version but it's still not good.
The strange thing is that tests are passing with version 1.7 on travis.
I can't get them passing on my version, here are the results with the version 1.8

 1) test simple global queue yield/2 (Honeydew.GlobalTest)
     test/honeydew/global_test.exs:22
     ** (exit) :not_alive
     stacktrace:
       (stdlib) slave.erl:198: :slave.start/5
       (honeydew) test/support/cluster.ex:16: Honeydew.Support.Cluster.spawn_node/1
       (honeydew) test/support/cluster_setups.ex:22: Honeydew.Support.ClusterSetups.start_node/3
       test/honeydew/global_test.exs:9: Honeydew.GlobalTest.__ex_unit_setup_1/1
       test/honeydew/global_test.exs:1: Honeydew.GlobalTest.__ex_unit__/2



  2) test simple global queue hammer async/3 (Honeydew.GlobalTest)
     test/honeydew/global_test.exs:15
     ** (exit) :not_alive
     stacktrace:
       (stdlib) slave.erl:198: :slave.start/5
       (honeydew) test/support/cluster.ex:16: Honeydew.Support.Cluster.spawn_node/1
       (honeydew) test/support/cluster_setups.ex:22: Honeydew.Support.ClusterSetups.start_node/3
       test/honeydew/global_test.exs:9: Honeydew.GlobalTest.__ex_unit_setup_1/1
       test/honeydew/global_test.exs:1: Honeydew.GlobalTest.__ex_unit__/2

.....

  3) test should inform the awaiting process of an uncaught throw (Honeydew.FailureMode.AbandonTest)
     test/honeydew/failure_mode/abandon_test.exs:44
     ** (MatchError) no match of right hand side value: nil
     code: {:error, reason} =
     stacktrace:
       test/honeydew/failure_mode/abandon_test.exs:45: (test)



  4) test should inform the awaiting process of the uncaught throw (Honeydew.FailureMode.MoveTest)
     test/honeydew/failure_mode/move_test.exs:51
     match (=) failed
     code:  assert {:moved, {"intentional crash", stacktrace}} = Honeydew.yield(job)
     right: nil
     stacktrace:
       test/honeydew/failure_mode/move_test.exs:54: (test)



  5) test should inform the awaiting process of an uncaught throw (Honeydew.FailureMode.RetryTest)
     test/honeydew/failure_mode/retry_test.exs:66
     match (=) failed
     code:  assert {:retrying, {"intentional crash", _stacktrace}} = Honeydew.yield(job)
     right: nil
     stacktrace:
       test/honeydew/failure_mode/retry_test.exs:69: (test)



  6) test should remove job from the queue (Honeydew.FailureMode.AbandonTest)
     test/honeydew/failure_mode/abandon_test.exs:24
     No message matching :job_ran after 100ms.
     The process mailbox is empty.
     code: assert_receive :job_ran
     stacktrace:
       test/honeydew/failure_mode/abandon_test.exs:26: (test)



  7) test should move the job on the new queue (Honeydew.FailureMode.MoveTest)
     test/honeydew/failure_mode/move_test.exs:28
     No message matching :job_ran after 100ms.
     The process mailbox is empty.
     code: assert_receive :job_ran
     stacktrace:
       test/honeydew/failure_mode/move_test.exs:30: (test)



  8) test should retry the job (Honeydew.FailureMode.RetryTest)
     test/honeydew/failure_mode/retry_test.exs:37
     No message matching :job_ran after 100ms.
     The process mailbox is empty.
     code: assert_receive :job_ran
     stacktrace:
       test/honeydew/failure_mode/retry_test.exs:39: (test)

And then it get stuck

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

did you install erlang 21.2.5?

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

Sorry it took some time.
This is working now! thank you for your time!
There are just two errors on mix test

1) test simple global queue yield/2 (Honeydew.GlobalTest)
     test/honeydew/global_test.exs:22
     ** (exit) :not_alive
     stacktrace:
       (stdlib) slave.erl:198: :slave.start/5
       (honeydew) test/support/cluster.ex:16: Honeydew.Support.Cluster.spawn_node/1
       (honeydew) test/support/cluster_setups.ex:22: Honeydew.Support.ClusterSetups.start_node/3
       test/honeydew/global_test.exs:9: Honeydew.GlobalTest.__ex_unit_setup_1/1
       test/honeydew/global_test.exs:1: Honeydew.GlobalTest.__ex_unit__/2



  2) test simple global queue hammer async/3 (Honeydew.GlobalTest)
     test/honeydew/global_test.exs:15
     ** (exit) :not_alive
     stacktrace:
       (stdlib) slave.erl:198: :slave.start/5
       (honeydew) test/support/cluster.ex:16: Honeydew.Support.Cluster.spawn_node/1
       (honeydew) test/support/cluster_setups.ex:22: Honeydew.Support.ClusterSetups.start_node/3
       test/honeydew/global_test.exs:9: Honeydew.GlobalTest.__ex_unit_setup_1/1
       test/honeydew/global_test.exs:1: Honeydew.GlobalTest.__ex_unit__/2

but progress_and_queue_status example is now working

from honeydew.

koudelka avatar koudelka commented on August 12, 2024

No worries, glad it's working. :)

It sounds like there might be an issue in the test suite getting the slave nodes working, It's interesting that it doesn't fail on travis. I'll look into it, thanks!

from honeydew.

l-vincent-l avatar l-vincent-l commented on August 12, 2024

Thank you very much!

from honeydew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.