Git Product home page Git Product logo

ncrontab's People

Watchers

 avatar

ncrontab's Issues

Unit test CrontabScheduleTests.DontLoopIndefinitely fails, TimeCron method contains error

What steps will reproduce the problem?
1. Build the solution
2. Run unit test without attaching debugger


What is the expected output? What do you see instead?
Expected: green result
Instead: DontLoopIndefinitely is red

What version of the product are you using? On what operating system?
NCrontab 0.2


Please provide any additional information below.
Body of TimeCron should be changed:

if (worker.Join(!Debugger.IsAttached ? (int)limit.TotalMilliseconds :
Timeout.Infinite))

instead of

if (worker.Join(!Debugger.IsAttached ? limit.Milliseconds : Timeout.Infinite))

=> use the TotalMilliseconds property of a TimeSpan .

Original issue reported on code.google.com by [email protected] on 25 Nov 2008 at 9:07

Method NCrontabViewer.MainForm.Diff does not work with DateTime-Strings of specific locales

The current release implementation (version 0.2) of 
NCrontabViewer.MainForm.Diff does not work with DateTime-Strings of specific 
locales. Example: try to use the application on a computer with German locale. 
Reason: the length of the short weekday name is just 2 (not 3).

Possible workaround:

Change line 138 of MainForm.cs to
var timeString = occurance.ToString("ddd dd, MMM yyyy HH:mm", 
CultureInfo.InvariantCulture);

http://code.google.com/p/ncrontab/source/browse/tags/0.2/src/NCrontabViewer/Main
Form.cs#138

Original issue reported on code.google.com by [email protected] on 26 Jan 2011 at 10:20

  • Merged into: #1

DontLoppIndefinitely unittest fails

What steps will reproduce the problem?
1. Run the unittests in NCrontab 0.2 without debugger attached.
2. DontLoppIndefinitely will fail.

Expected results:
DontLoppIndefinitely test should pass

Actual results:
The test fails with the message "The test did not complete in the allocated 
time".

Suggested fix:
Issue is in NCrontab.Tests.CrontabSchduleTests:256:
if (worker.Join(!Debugger.IsAttached ? limit.Milliseconds : Timeout.Infinite))
since Milliseconds only contains the fractional number of milliseconds (< 
1000). You would probably want something like:
if (worker.Join(!Debugger.IsAttached ? (int)limit.TotalMilliseconds : 
Timeout.Infinite))

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 9:28

  • Merged into: #2

Culture Issue

On a computer with (swiss-)german regional settings, an exception is 
thrown in the viewer.
Problem: Date to string conversion use current culture, but after 
conversion, the day string has not always 3 letters

Original issue reported on code.google.com by [email protected] on 25 Sep 2008 at 10:30

Attachments:

Strong-name assembly

Please sign the ncrontab assembly in nuget! I'm currently signing and 
maintaining my own version because I need to reference it in a signed assembly. 
Thanks :)

Original issue reported on code.google.com by [email protected] on 27 Jun 2013 at 9:54

Expression not matching when expected

What steps will reproduce the problem?

1. Create the following expression:
    '10 1 * * *'

2. Use the following start and end DateTimes:
    START: 3/2/2010 1:10:00 AM
      END: 3/2/2010 1:15:00 AM

What is the expected output? What do you see instead?
   Expected Results: 1 match
   Actual Results: no match at all


What version of the product are you using? On what operating system?
   AssemblyVersion("0.2.10124.0")
   AssemblyFileVersion("0.2.10124.1211")
   Windows XP / .NET 3.5

Please provide any additional information below.
   -

Original issue reported on code.google.com by [email protected] on 2 Mar 2010 at 10:14

Discrepancy between weekday expression "Sun-Sat" and "Mon-Sun"

What steps will reproduce the problem?
Use NCrontab to get the next occurrence after 2012-01-27T12:23:37 for the 
following two expressions:
- "30 1 * * Sun-Sat | UTC"
- "30 1 * * Mon-Sun | UTC"

What is the expected output? What do you see instead?
Both expressions say "1:30 A.M. every weekday", so the expected output is 
2012-01-28T01:30:00. But the second expression yields something else (29th 
instead of 28th). I assume that NCrontab treats "Mon-Sun" (numerical: 1-0) as 
"Sun-Mon" (numerical: 0-1) which is not really what I would expect!?

What version of the product are you using? On what operating system?
NCrontab 1.0

Original issue reported on code.google.com by andreas.sommer87 on 3 Feb 2012 at 12:28

Extending the expression to seconds

Hello,

is it possible to extend the expression to seconds?
I did it now for myself, but it would be nice if this can be switched on and 
off in the original sourcebase.

Thanks a lot for your work,
Mandy

Original issue reported on code.google.com by [email protected] on 23 Aug 2012 at 3:23

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.