Giter VIP home page Giter VIP logo

beam-minion's People

Contributors

manwar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

beam-minion's Issues

Can't call method "minion" on an undefined value

The test suite started to fail:

Reference is already weak at /home/cpansand/.cpan/build/2018102800/Beam-Minion-0.014-Oy5jfD/blib/lib/Beam/Minion/Util.pm line 118.
Can't call method "minion" on an undefined value at t/command/job.t line 43.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 2.
t/command/job.t ........ 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed 
t/command/run.t ........ ok
Name "Local::Service::DESTROYED" used only once: possible typo at t/command/worker.t line 103.
Reference is already weak at /home/cpansand/.cpan/build/2018102800/Beam-Minion-0.014-Oy5jfD/blib/lib/Beam/Minion/Util.pm line 118.
Can't call method "minion" on an undefined value at t/command/worker.t line 43.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 2.
t/command/worker.t ..... 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed 

Statistical analysis on my machine presents two candidates responsible for the failure: Minion 9.05+ or Mojolicious 8.03+

t/command/worker.t fails (with Minion 8?)

A test fails on some of my smokers:

#   Failed test 'No tests run for subtest "test that object is destroyed"'
#   at t/command/worker.t line 104.
Can't locate object method "execute" via package "Minion::Job" at t/command/worker.t line 102.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 9.
t/command/worker.t ..... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/9 subtests 

Statistical analysis suggests that this happens if Minion 8 is installed:

****************************************************************
Regression 'mod:Minion'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	     -0.0000	      0.0000	  -0.58
[1='eq_8.10']  	      0.0000	      0.0000	   0.00
[2='eq_8.11']  	      0.0000	      0.0000	   1.10
[3='eq_8.12']  	      0.0000	      0.0000	   5.51
[4='eq_9.0']   	      1.0000	      0.0000	9755277510300518.00
[5='eq_9.01']  	      1.0000	      0.0000	10222298387969240.00
[6='eq_9.02']  	      1.0000	      0.0000	10347034319835176.00

R^2= 1.000, N= 68, K= 7
****************************************************************

Add API for queueing jobs

Right now the only way to queue a job is to run the beam minion run command. Rather than use the Beam::Minion::Command::run module directly, there should be a class method called enqueue on Beam::Minion that allows for queuing a new job with any data.

The method should basically consist of the same few lines as the Beam::Minion::Command::run module. When that code is moved, Beam::Minion::Command::run should be edited to use the new Beam::Minion::enqueue method.

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.