[Win32utils-devel] win32-taskscheduler ole branch

Daniel Berger djberg96 at gmail.com
Wed Sep 4 16:34:59 UTC 2013


Thanks!

I've reworked the rest of the tests and made a few minor bug fixes here and
there.

However, there are still 11 failures and 2 errors. The following methods
are failing:

comment and/or comment=
creator=
trigger
delete_trigger
trigger_string
max_run_time=
parameters and/or parameters=

Regards,

Dan
priority and/or priority=




On Mon, Sep 2, 2013 at 7:40 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 2013/9/3 Daniel Berger <djberg96 at gmail.com>:
> > A recent bug report inspired me to go back and revisit the ole branch of
> the
> > win32-taskscheduler library.
> >
> > I refactored the tests and got most of the methods working. However, a
> few
> > bugs remain. For example, I cannot create a new task. At the bottom of
> the
> > taskscheduler.rb file in the ole branch you'll see this:
> >
> >   include Win32
> >   ts = TaskScheduler.new
> >
> >   trigger = {
> >     :start_year   => 2015,
> >     :start_month  => 4,
> >     :start_day    => 25,
> >     :start_hour   => 23,
> >     :start_minute => 5,
> >     :trigger_type => TaskScheduler::MONTHLYDOW,
> >     :type => {
> >       :weeks        => TaskScheduler::FIRST_WEEK |
> TaskScheduler::LAST_WEEK,
> >       :days_of_week => TaskScheduler::MONDAY | TaskScheduler::FRIDAY,
> >       :months       => TaskScheduler::APRIL | TaskScheduler::MAY
> >     }
> >   }
> >
> >   ts.new_task('foo', trigger)
> >
> > However, wen I try to run it I get:
> >
> > taskscheduler.rb:668:in `rescue in new_work_item':
> RegisterTaskDefinition:
> > The task XML contains a value which
> >  is incorrectly formatted or out of range. (Win32::TaskScheduler::Error)
> >         from taskscheduler.rb:658:in `new_work_item'
> >         from taskscheduler.rb:1235:in `<main>'
> >
> > Any suggestions?
> >
> The error is due to invalid trig.EndBoundary value.
> I made a commit to fix this error.
>
> Regards,
> Park Heesob
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130904/860527e8/attachment.html>


More information about the win32utils-devel mailing list