PagerDuty / scheduler

A Scala library for scheduling arbitrary code to run at an arbitrary time.
BSD 3-Clause "New" or "Revised" License
214 stars 38 forks source link

Issue installing scheduler in a new project #46

Open dorupirvu-ayla opened 2 years ago

dorupirvu-ayla commented 2 years ago

Hello,

I've followed the steps referenced in the User Guide to add the scheduler as a dependency, but when i go and build the project i get

sbt:dir> compile
←[0m[←[0m←[0minfo←[0m] ←[0m←[0mUpdating ...←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        module not found: com.pagerduty#scheduler_2.11;9.1.2←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m==== local: tried←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m  .ivy2\local\com.pagerduty\scheduler_2.11\9.1.2\ivys\ivy.xml←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m==== public: tried←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m  https://repo1.maven.org/maven2/com/pagerduty/scheduler_2.11/9.1.2/scheduler_2.11-9.1.2.pom←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m==== bintray-pagerduty-oss-maven: tried←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m  https://dl.bintray.com/pagerduty/oss-maven/com/pagerduty/scheduler_2.11/9.1.2/scheduler_2.11-9.1.2.pom←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        ::::::::::::::::::::::::::::::::::::::::::::::←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        ::          UNRESOLVED DEPENDENCIES         ::←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        ::::::::::::::::::::::::::::::::::::::::::::::←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        :: com.pagerduty#scheduler_2.11;9.1.2: not found←[0m
←[0m[←[0m←[33mwarn←[0m] ←[0m←[0m        ::::::::::::::::::::::::::::::::::::::::::::::←[0m

Getting forbidden errors when trying to access the PagerDuty scheduler (or any other package) on bintray. May be related to https://www.jfrog.com/confluence/pages/viewpage.action?pageId=122564110

Is there any way to install library?

kumar-asista commented 2 years ago

My self also facing same issue in new machine,

Since I have same project another machine in this all dependency installed 2 year back, this was working. I try to export all required jar from old machine and install manually in new machine.

Following Steps Will help:

  1. Install required dependencies manually
  2. Clone full source code to local
  3. Build scheduler library and install local
  4. Now build you're actual project

May be this attached extracted libs can help to build scheduler library.

scheduler_libs.zip

dorupirvu-ayla commented 2 years ago

Thank you @kumar-asista Was able to build the scheduler using those libs.

By any chance do you have any sample code to run the scheduler? Using the sample from https://github.com/PagerDuty/scheduler/issues/21#issuecomment-294870125 but that's trial and error... Mostly error

dvgica commented 2 years ago

I will note that this lib is very unmaintained. None of the original authors work at PagerDuty any longer (including myself). I'm not sure if it's still in use at PD either. So, use at your own risk.

dorupirvu-ayla commented 2 years ago

Thanks for the reply @dvgica. Yes it is very clear that it is unmaintained. Want to be able to run it and do some experiments with it.

And since you are here, did you find any limit on how much this thing can scale in terms of number of jobs scheduled?

dvgica commented 2 years ago

did you find any limit on how much this thing can scale in terms of number of jobs scheduled?

No, but we didn't try to find its limits either.

kumar-asista commented 2 years ago

Hi @dorupirvu-ayla , scheduler library works with out much issue still now,

I found one more source from my local environment this may be help you.

scheduler_9.1.2.zip