Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 25 21:50
    martinzarza opened #639
  • Jun 25 17:26
    agronholm closed #636
  • Jun 25 02:41
    mohit-blazop commented #636
  • Jun 24 21:23
    stepacool commented #285
  • Jun 22 15:18
    Munanga commented #332
  • Jun 21 07:21
    agronholm commented #638
  • Jun 21 05:33
    4n1qz5skwv commented #638
  • Jun 21 05:33
    4n1qz5skwv commented #638
  • Jun 21 05:21
    agronholm closed #638
  • Jun 21 05:21
    agronholm commented #638
  • Jun 21 04:56
    4n1qz5skwv opened #638
  • Jun 19 18:21
    agronholm commented #636
  • Jun 19 18:19
    mohit-blazop commented #636
  • Jun 19 04:47
    mohit-blazop commented #636
  • Jun 16 19:34
    agronholm commented #636
  • Jun 16 19:06
    mohit-blazop commented #636
  • Jun 16 18:51
    agronholm commented #636
  • Jun 16 18:48
    agronholm commented #636
  • Jun 16 18:40
    mohit-blazop commented #636
  • Jun 16 18:20
    agronholm commented #636
lalaipo
@lalaipo
oh okay thanks
lalaipo
@lalaipo
why i got return plugin_cls(**constructor_kwargs) TypeError: __init__() got an unexpected keyword argument 'minutes'
oh its minute
lalaipo
@lalaipo
how to shutdown it? when i use await scheduler.shutdown() it works i checked it by scheduler.running return False but it gives me errors too: TypeError: object NoneType can't be used in 'await' expression, but when i use scheduler.shutdown() i checked it with scheduler.running it returns True it means not stopped by doing that
Alex Grönholm
@agronholm
@lalaipo that is an achilles heel of the current asyncio scheduler
it could not be made awaitable
in the master branch there is an unfinished 4.0 scheduler which has full async support
lalaipo
@lalaipo
oh okay
how do i import AsyncIOScheduler in master branch?
Alex Grönholm
@agronholm
@lalaipo do you know how to use git?
the documentation hasn't really been updated so you'd be on your own pretty much – the tests would be the only clues
lalaipo
@lalaipo
yes i use pip3 install git+git/repo@branch
in 3.7.0 i can import using from apscheduler.schedulers.asyncio import AsyncIOScheduler
but in master branch it doesnt work
Alex Grönholm
@agronholm
if you want to play around with 4.0
the documentation has not been updated yet
lalaipo
@lalaipo
oh ok
Alex Grönholm
@agronholm
pypy 3.7 is production quality now, so apscheduler 4 targeting py3.7+ seems to have been spot on
lalaipo
@lalaipo
can i add multiple times in cron expression? like hours='1,2'
@agronholm
Alex Grönholm
@agronholm
yes, have you read the docs for the cron trigger?
lalaipo
@lalaipo
i see only hours
Alex Grönholm
@agronholm
what do you mean?
lalaipo
@lalaipo
could it be combined with minutes?
i want it 11:30, 12:30
Alex Grönholm
@agronholm
you can use OrTrigger for that
combine two cron triggers
lalaipo
@lalaipo
image.png
how about this?
Alex Grönholm
@agronholm
that creates two separate jobs which is not the same thing
lalaipo
@lalaipo
hmm
how then
Alex Grönholm
@agronholm
like I said, with OrTrigger
make two CronTrigger instances and combine them with OrTrigger
lalaipo
@lalaipo
there is no docs about it?
lalaipo
@lalaipo
i use search it keeps loading
Alex Grönholm
@agronholm
yes
lalaipo
@lalaipo
image.png
am i right?
Alex Grönholm
@agronholm
no, you're supposed to use OrTrigger, not AndTrigger
lalaipo
@lalaipo
ah okay
lalaipo
@lalaipo
image.png
any ideas?
Alex Grönholm
@agronholm
what's the problem?
what are you trying to accomplish?
Vioshim
@Vioshim
Hello people, I've been testing the master branch, and realized that AsyncIOScheduler isn't there, is that module getting removed, deprecated or something?
Alex Grönholm
@agronholm
@Krangelj there are two schedulers now, AsyncScheduler and SyncScheduler
you want to use AsyncScheduler