Giter Site home page Giter Site logo

Comments (17)

Bastien2805 avatar Bastien2805 commented on June 11, 2024 1

Hi, here is my scheduler.yaml file.

scheduler_bundle:
    transport:
        dsn: 'doctrine://default?execution_mode=first_in_first_out&table_name=scheduler_tasks'

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024 1

maybe this is normal because it should not contain the dev-issue/159 fix, right?

dev-issue/159 is not implemented for now, that could be the reason, you're right πŸ™‚

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024 1

Hi @jvancoillie πŸ‘‹πŸ»

I've moved the sleep call issue to a new issue πŸ™‚

Link: #165

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @jvancoillie πŸ‘‹πŸ»

Hum strange, do you have any scheduled tasks when launching the command?

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @jvancoillie πŸ‘‹πŸ»

I've pushed a first version of a fix via dev-issue/159, could you test it when you have a moment? Thanks πŸ™‚

from schedulerbundle.

Bastien2805 avatar Bastien2805 commented on June 11, 2024

Hi @Guikingone,

I think i have the same issue so i prefer ask directly here.

When i launch "scheduler:consume -w" i have this :

$ bin/console scheduler:consume -w
                                                                                                                       
 [WARNING] Each tasks has already been executed for the current minute                                                  
                                                                                                                        
 Consider calling this command again at "2021-06-30 04:12"               

After, it just give me back control.

Thanks.

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @Bastien2805 πŸ‘‹πŸ»

Yes, it could be related as I'm facing the issue locally, I'm currently in holidays so the PR has stale a little bit πŸ˜„

I'm gonna fix it fast, could you test it against dev-issue/159?

from schedulerbundle.

jvancoillie avatar jvancoillie commented on June 11, 2024

Hello @Guikingone πŸ₯‡

I just tested the dev/159 and it seems to work.

thanks

from schedulerbundle.

Bastien2805 avatar Bastien2805 commented on June 11, 2024

HiΒ @Guikingone,

I also tested it but it still doesn't work for me. I have the same message and it give me back control.

Do you need more specific information to resolve it ?

Thanks.

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @Bastien2805,

Could you share the scheduler.yaml file?

This way, we can see the transport used along with the tasks πŸ™‚

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @Bastien2805 and @jvancoillie,

I've pushed a small fix (mainly in the worker), could you test it via dev-issue/159?

Thanks and very sorry for this bug πŸ™

from schedulerbundle.

Bastien2805 avatar Bastien2805 commented on June 11, 2024

Hi @Guikingone,

Thanks for the fix but it still doesn't work for me with the same error message and configuration in scheduler.yaml file.

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @jvancoillie,

Could you validate that if fix your issue when you have a moment?

Thanks πŸ™‚

from schedulerbundle.

jvancoillie avatar jvancoillie commented on June 11, 2024

Hello @Guikingone,

I just tested on dev-issue / 159 with the following configuration :

scheduler_bundle:
  transport:
    dsn: 'doctrine://default?execution_mode=first_in_first_out'
  tasks:
    foo:
      type: 'command'
      command: 'app:foo'
      description: 'simple task'
      single_run: true

the wait option seems to do its job and maybe a little too much because I no longer have the possibility to quit the worker CTRL + C :(
Capture d’écran 2021-07-05 aΜ€ 18 38 55

I also have behavior that IMHO shouldn't be.
When I run the command scheduler:consume --wait a second time it displays the following warning πŸ€”
Capture d’écran 2021-07-05 aΜ€ 18 44 12

shouldn't it be able to resume sleeping mode WDYT ?

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

the wait option seems to do its job and maybe a little too much because I no longer have the possibility to quit the worker CTRL + C

Hum, strange, I'm gonna explore this issue.

When I run the command scheduler:consume --wait a second time it displays the following warning

Yes, this behaviour has been introduced in 0.4.5 and discussed with @Bastien2805, #161 should fix the issue, could you test it?

from schedulerbundle.

jvancoillie avatar jvancoillie commented on June 11, 2024

Yes, this behaviour has been introduced in 0.4.5 and discussed with @Bastien2805, #161 should fix the issue, could you test it?

πŸ‘ dev-feat/wait_force no longer display warning with --forceoption but it gives me back control, maybe this is normal because it should not contain the dev-issue/159 fix, right?

from schedulerbundle.

Guikingone avatar Guikingone commented on June 11, 2024

Hi @jvancoillie πŸ‘‹πŸ»

Could you confirm that dev-issue/159 fix the "control" issue, I'm talking about the command ending process and not the sleep call, if so, could you open a new issue for the sleep call?

Thanks πŸ™‚

from schedulerbundle.

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.