Comments (5)
I'll take a look at it. In regards to stable... unfortunately the cron crate that I depend on uses features from nightly so this will not be able to work on stable. I've commented about this on the README file.
from job_scheduler.
Looks like the latest nightly is breaking the cron crate which is what job_scheduler depends on. Unfortunate. The latest nightly also breaks a lot of other crates I use for other projects at work :(.
If you set your rust version (can use rustup override) to nightly-2018-05-16
, this is the version we currently use at my office and is known to work well atm. I just verified that this version works for job_schedule. Sorry about that! I'll update the readme with a note about the latest nightly breaking my dependency. I was thinking about perhaps writing my own cron parser so that the crate compiles on stable. I don't quite have time to do that just at the moment.
Please let me know if this version of nightly works for you. Otherwise I can fork the cron crate to fix the issue and do a pull request.
from job_scheduler.
Created a pull request for the cron crate fixing the issue on the latest nightly.
from job_scheduler.
OK! Cron 0.4.1 has been released and job_scheduler now compiles on the latest nightly. Going to close out this issue.
$ rustup update
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-06-01, rust version 1.28.0-nightly (1ffb32147 2018-05-31)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: checking for self-updates
nightly-x86_64-unknown-linux-gnu updated - rustc 1.28.0-nightly (1ffb32147 2018-05-31)
$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading cron v0.4.1
Compiling cc v1.0.17
Compiling num-traits v0.2.4
Compiling num-integer v0.1.38
Compiling libc v0.2.41
Compiling cfg-if v0.1.3
Compiling rustc-demangle v0.1.8
Compiling nom v2.1.0
Compiling time v0.1.40
Compiling backtrace-sys v0.1.23
Compiling chrono v0.4.2
Compiling backtrace v0.3.8
Compiling error-chain v0.10.0
Compiling cron v0.4.1
Compiling job_scheduler v1.0.4 (file:///home/lholden/Projects/job_scheduler)
Finished dev [unoptimized + debuginfo] target(s) in 6.16s
from job_scheduler.
tnx
from job_scheduler.
Related Issues (20)
- Working around `tick` HOT 4
- Is time absolute or relative to scheduler start? / When will a job run the first time? HOT 1
- Documentation is down HOT 3
- Date change can lead to high CPU usage, program crashes, and system instability.
- Add timezone configuration HOT 1
- Update Crates.io HOT 3
- Please update cron HOT 3
- `dyn std::ops::FnMut()` cannot be sent between threads safely
- Actix web support HOT 1
- Update cron to version 0.7
- Is this project still maintained? HOT 2
- #notanissue Tokio async version
- How to use async function in run thread? HOT 1
- Day of Week, expression "1-5" results in execution on Sunday? HOT 1
- Meet a issue when I add the notification handler to Job HOT 1
- Ability to remove job from schedule HOT 11
- Are there plans for reentrancy protection? HOT 2
- * 0/2 * * * * * every two minutes seems to run every second HOT 1
- When one job takes long, it causes other jobs to run multiple times afterwards (in same tick() call), violating their interval time HOT 2
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 job_scheduler.