If I set two different schedules for the same function, all automatic calls for the second schedule (made by elysia_cron itself) records an error message despite running without problems.

If I try to call the second schedule by hand (through the run link on the Status page) it records the error and doesn't run.

Here is an example of the setting I'm mentioning:

# Teste
* * * * * aggregate_statistics_save_csv_report_cron_job('', 2, 1, 7);

# Produção e gravação de relatório semanal de acesso.
15 1 * * 1 aggregate_statistics_save_csv_report_cron_job('', 2, 1, 7);

With this setting I get the following info on elysia_cron's status page:

Job / Rule	Last run	Last exec time	Exec count	Avg/Max Exec time
aggregate_statistics_save_csv_report_cron1 (w)	Chamada semanal para produção de relatório de acesso [run]
* * * * *	30/11/2009 - 17:44	0s	21	0.44s / 1s
aggregate_statistics_save_csv_report_cron_job (w)	Teste [run]
* * * * *	30/11/2009 - 17:08	1s	9	0.45s / 1s

Please observe that the second function name has been changed from "aggregate_statistics_save_csv_report_cron_job" to "aggregate_statistics_save_csv_report_cron_job1".

If I (or elysia_cron) tried to run this second job I get the following error: Execution of aggregate_statistics_save_csv_report_cron_job1 failed, can't find function! The different is that despite the error recorded, an automatic call by elysia_cron actually worked!

I located two bugs related to this issue. The second part of the patch fixes the automatic calls (made by elysia_cron itself) removing the spurious error messages.

The first part of the patch fixes the calls made manually through the run link on elysia_cron's status page.

CommentFileSizeAuthor
elysia_cron_multiple_calls.patch827 bytesrsevero

Comments

rsevero’s picture

Title: Only first configuration line for the same function runs » Only first configuration line for the same function runs without error messages
gotheric’s picture

Assigned: Unassigned » gotheric
Status: Active » Needs review

Thanx for support.
I'll review the patch and commit it soon!

gotheric’s picture

Status: Needs review » Fixed

Commited patch (and other fixes).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ryan_courtnage’s picture

Thanks for the patch!