Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

IC Jobs & time-build

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


sbatschelet at mac

Feb 2, 2011, 8:33 AM

Post #1 of 5 (345 views)
Permalink
IC Jobs & time-build

I am looking to generate a bunch of static search result pages using time-build. But I want [time-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.

Thanks
-Sam

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


paul at gishnetwork

Feb 2, 2011, 1:32 PM

Post #2 of 5 (319 views)
Permalink
Re: IC Jobs & time-build [In reply to]

> From: sbatschelet [at] mac
> I am looking to generate a bunch of static search result pages using time-build. But I want [time-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.


I suppose if visitors are not using cookies, that they could loose their session, because the generated pages won't have the session in the links (if any) on the page.

Although, I bet you could create a results page that used a <form>, then [included] your static results into it, with thoughtfully creafted form elements.... maybe? This way, all the intesive work (query executions?) are already done - assuming that is what you are trying to avoid.


Paul
_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


sbatschelet at me

Feb 2, 2011, 2:02 PM

Post #3 of 5 (320 views)
Permalink
Re: IC Jobs & timed-build [In reply to]

On Feb 2, 2011, at 4:32 PM, Paul Jordan wrote:

>
>
>> From: sbatschelet [at] mac
>> I am looking to generate a bunch of static search result pages using time-build. But I want [timed-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.
>
>
> I suppose if visitors are not using cookies, that they could loose their session, because the generated pages won't have the session in the links (if any) on the page.
>
> Although, I bet you could create a results page that used a <form>, then [included] your static results into it, with thoughtfully creafted form elements.... maybe? This way, all the intesive work (query executions?) are already done - assuming that is what you are trying to avoid.

Right I think that will take a little trial and error but could be do-able. But for now I can't seem to get the timed build to work.

catalog.cfg

Jobs <<EOJ
base_directory jobs
suffix .job
log var/log/cron.log
email sbatschelet [at] mac
subject Interchange results for job: %s
EOJ

catroot/jobs/icjobs/test.jobs

[timed-build force=1 file=pages/testpage.html]
Built at [time]%c[/time].
[/timed-build]

called as interchange user via interchange --quiet --runjobs=catalog_name=icjobs

nothing in cron.log or logs ?


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Feb 2, 2011, 11:30 PM

Post #4 of 5 (314 views)
Permalink
Re: IC Jobs & timed-build [In reply to]

On 02/02/2011 11:02 PM, Sam Batschelet wrote:
>
> On Feb 2, 2011, at 4:32 PM, Paul Jordan wrote:
>
>>
>>
>>> From: sbatschelet [at] mac
>>> I am looking to generate a bunch of static search result pages using time-build. But I want [timed-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.
>>
>>
>> I suppose if visitors are not using cookies, that they could loose their session, because the generated pages won't have the session in the links (if any) on the page.
>>
>> Although, I bet you could create a results page that used a<form>, then [included] your static results into it, with thoughtfully creafted form elements.... maybe? This way, all the intesive work (query executions?) are already done - assuming that is what you are trying to avoid.
>
> Right I think that will take a little trial and error but could be do-able. But for now I can't seem to get the timed build to work.
>
> catalog.cfg
>
> Jobs<<EOJ
> base_directory jobs
> suffix .job
> log var/log/cron.log
> email sbatschelet [at] mac
> subject Interchange results for job: %s
> EOJ
>
> catroot/jobs/icjobs/test.jobs
>
> [timed-build force=1 file=pages/testpage.html]
> Built at [time]%c[/time].
> [/timed-build]
>
> called as interchange user via interchange --quiet --runjobs=catalog_name=icjobs
>
> nothing in cron.log or logs ?

I never tried to use [timed-build] in an Interchange job, so it might not work. You
can also take a look at the [capture-page] tag.

Regards
Racke

--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


sbatschelet at me

Feb 3, 2011, 5:56 AM

Post #5 of 5 (313 views)
Permalink
Re: IC Jobs & timed-build [In reply to]

On Feb 3, 2011, at 2:30 AM, Stefan Hornburg (Racke) wrote:

> On 02/02/2011 11:02 PM, Sam Batschelet wrote:
>>
>> On Feb 2, 2011, at 4:32 PM, Paul Jordan wrote:
>>
>>>
>>>
>>>> From: sbatschelet [at] mac
>>>> I am looking to generate a bunch of static search result pages using time-build. But I want [timed-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.
>>>
>>>
>>> I suppose if visitors are not using cookies, that they could loose their session, because the generated pages won't have the session in the links (if any) on the page.
>>>
>>> Although, I bet you could create a results page that used a<form>, then [included] your static results into it, with thoughtfully creafted form elements.... maybe? This way, all the intesive work (query executions?) are already done - assuming that is what you are trying to avoid.
>>
>> Right I think that will take a little trial and error but could be do-able. But for now I can't seem to get the timed build to work.
>>
>
> I never tried to use [timed-build] in an Interchange job, so it might not work. You
> can also take a look at the [capture-page] tag.

Thanks Racke [capture-page] does have some promise but still no joy with jobs... in my test.job file I used a pretty basic example from the docs.

[capture-page page=index file=static/index.html umask=022 auto_create_dir=1]

Nothing no output nothing in logs

If I drop --quiet it gives me an output.

interchange/bin/interchange --runjobs=my_cat=icjobs
Dispatching jobs=icjobs for cat my_cat to Interchange server 32245 with HUP.

But it has no real error capabilities because even if I use a non existent catalog name and or job it still gives the same msg. example
Dispatching jobs=icjobs_not_real for cat my_cat_not_real to Interchange server 32245 with HUP.

Tried with debug=1 no output

Does anyone have jobs working with 5.7.6, is this a possible bug?

Thanks -Sam





_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.