<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/config/schedule.rb, branch update-INSTALL</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>schedule.rb: Add cron job to update parent imports from child imports</title>
<updated>2017-08-01T17:19:01+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-08-01T16:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=de687e374fe29a66fcf2d6f32849a5b7a7ef7646'/>
<id>de687e374fe29a66fcf2d6f32849a5b7a7ef7646</id>
<content type='text'>
This task will run every 5 minutes, synchronising parent imports with
the status of their children.

When all children have finished, if none of them have failed, the parent
import should get a status of "successful":

    WorkbenchImport status: :successful
      NetexImport status: :successful
      NetexImport status: :successful

When all children have finished, if any of them have failed, the parent
import should get a status of "failed":

    WorkbenchImport status: :failed
      NetexImport status: :failed
      NetexImport status: :successful

We need a Cron job for this instead of being able to do it via a Ruby
method because the thing that's setting the status on the sub-imports
when they're complete is the STIF Java IEV application. Thus there's no
way for our Ruby code to know that a sub-import has finished. Because of
that, we do this polling mechanism every five minutes to update the
imports that need updating.

Created a Rake task to use in the Whenever schedule because the `runner`
method from Whenever expanded to `script/rails`, which is a bloody
ancient file, and tries to run via JRuby lolwat. Didn't want to bother
adding a configuration to Whenever to use something more modern, and
didn't know whether the binstub in `bin/` for `rails` is available since
we don't commit those to the repo apparently (although I knew that fact
from before).

Refs #3511
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This task will run every 5 minutes, synchronising parent imports with
the status of their children.

When all children have finished, if none of them have failed, the parent
import should get a status of "successful":

    WorkbenchImport status: :successful
      NetexImport status: :successful
      NetexImport status: :successful

When all children have finished, if any of them have failed, the parent
import should get a status of "failed":

    WorkbenchImport status: :failed
      NetexImport status: :failed
      NetexImport status: :successful

We need a Cron job for this instead of being able to do it via a Ruby
method because the thing that's setting the status on the sub-imports
when they're complete is the STIF Java IEV application. Thus there's no
way for our Ruby code to know that a sub-import has finished. Because of
that, we do this polling mechanism every five minutes to update the
imports that need updating.

Created a Rake task to use in the Whenever schedule because the `runner`
method from Whenever expanded to `script/rails`, which is a bloody
ancient file, and tries to run via JRuby lolwat. Didn't want to bother
adding a configuration to Whenever to use something more modern, and
didn't know whether the binstub in `bin/` for `rails` is available since
we don't commit those to the repo apparently (although I knew that fact
from before).

Refs #3511
</pre>
</div>
</content>
</entry>
<entry>
<title>Move NEW_RELIC_LOG variable in schedule.rb. Refs #1524</title>
<updated>2016-09-01T12:59:11+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2016-09-01T12:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5acae5f744c52676c2079e59e702f871c71bf405'/>
<id>5acae5f744c52676c2079e59e702f871c71bf405</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove bash -l option from whenever default job_template. Refs #1524</title>
<updated>2016-08-31T10:07:54+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2016-08-31T10:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=094f691e0dd4305070fcb97eff619dd19aa02086'/>
<id>094f691e0dd4305070fcb97eff619dd19aa02086</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge reflex into master</title>
<updated>2016-08-31T09:05:20+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2016-08-31T09:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=b554d044d04ae0a63b86ece48ddf57544dd6f4cd'/>
<id>b554d044d04ae0a63b86ece48ddf57544dd6f4cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Wip sync reflex - add gem - task reflex:sync + whenever cfg</title>
<updated>2016-08-31T09:03:22+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2016-08-31T09:03:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d71549685f124fd895b01884f7d236cf09b96e85'/>
<id>d71549685f124fd895b01884f7d236cf09b96e85</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add additionnal_path in whenever variables to complete crontab PATH. Refs #1524</title>
<updated>2016-08-31T09:03:09+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2016-08-31T09:03:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=62ae1074e7536dd170b0214ed339b7ad9323967d'/>
<id>62ae1074e7536dd170b0214ed339b7ad9323967d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>activate codifligne synchronization cron</title>
<updated>2016-08-19T12:49:13+00:00</updated>
<author>
<name>Edouard Maffert</name>
</author>
<published>2016-08-19T12:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5b4b7c4a4e40c9119762de642c51dfc927e069e2'/>
<id>5b4b7c4a4e40c9119762de642c51dfc927e069e2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>deactivate codifligne sync</title>
<updated>2016-08-10T17:29:35+00:00</updated>
<author>
<name>Edouard</name>
</author>
<published>2016-08-10T17:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1b434f1563d55fb9661a563484eafd930820955c'/>
<id>1b434f1563d55fb9661a563484eafd930820955c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add network and group of lines synchronization and create a rake task</title>
<updated>2016-08-10T15:51:42+00:00</updated>
<author>
<name>Edouard Maffert</name>
</author>
<published>2016-08-10T15:51:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=b66235384cf777a7195463495b412df1a5f34b80'/>
<id>b66235384cf777a7195463495b412df1a5f34b80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update whenever with rake users:sync</title>
<updated>2016-08-05T13:26:46+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2016-08-05T13:26:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9321b1e48945dc4a4e2c5ab981310d97e6a129da'/>
<id>9321b1e48945dc4a4e2c5ab981310d97e6a129da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
