Comments (14)
Are any of the other examples working for you?
from honeydew.
Nop ...
from honeydew.
if you manually queue a job with
{:work_really_hard, [0]} |> Honeydew.async(:my_queue)
does it display anything?
from honeydew.
It displays nothing
from honeydew.
You don't even see a %Honeydew.Job{…}
struct printed?
from honeydew.
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.
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.
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.
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.
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.
did you install erlang 21.2.5?
from honeydew.
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.
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.
Thank you very much!
from honeydew.
Related Issues (20)
- Clear an entire queue HOT 1
- Disabling clock freeze warning in test environment HOT 1
- Control retry time within job HOT 2
- Support Ecto.Adapters.MyXQL for MySQL HOT 6
- Mnesia as default queue not mentioned in start_queue/2 documentation HOT 1
- Custom queue makes Honeydew crashs by timeout HOT 4
- warning: function equal?/2 required by behaviour Ecto.Type
- How to rerun jobs if the system crashes? HOT 1
- pg2 scheduled for removal HOT 10
- How to cancel Jobs in Ecto Queue? HOT 1
- Doc links to code broken HOT 2
- Creates a behaviour for `Honeydew.Logger` module
- Unexpected behavior: bad_return application start failure using Mnesia outside of Honeydew HOT 5
- no match of right hand side value: [] HOT 2
- API for accessing in_progress jobs
- Redesigning API for concurrency
- Timeout error on application start HOT 1
- ErlangQueue doesn't respect delay_secs option HOT 1
- Shutdown hangs HOT 11
- Error when listing mnesia in mix extra_applications.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honeydew.