You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Jobs: change FE job to run every 15 minutes #23960
Currently, the FED job runs every hour on the hour. This means that a filing with a FED of 11:15 doesn't actually get filed until 12:00 (although the effective time is back-dated).
Please change the cron config for this job to run every 15 minutes. This will allow a maximum wait of 15 minutes to process a FED job at its appointed FE date and time.
We analyzed the filing times for Future Effective (FE) filings for CORP in the COLIN PROD database over multiple time periods (30, 90, 180, and 365 days). The data can be found in this spreadsheet.
Key Findings(As per 1 Year Data):
Midnight peak: Most filings happen around midnight (0:00 and 0:01). These filings are mostly Change of Address (NOCAD), along with some Voluntary Dissolution (ADVD2) and Amalgamation (AMALH, AMALR, AMALV) filings.
There's also a smaller peak at late night (23:59) with about 183 filings.
During the rest of the day, it's pretty quiet - only 1-48 filings per hour, spread out across different times, with only a few filings.
Technical Considerations:
I talked with Vysakh about making our processing more frequent, and he confirmed some important points:
Our current cron configuration prevents job overlap issues
The system automatically skips new runs if the previous job hasn't been finished
There's no risk of duplicate processing even with more frequent runs
There's no technical issue if we process more frequently
Based on this analysis, I think we can change the cron schedule to run every 15 minutes (*/15 * * * *). This change will:
Reduce the maximum waiting time for processing from 60 to 15 minutes
Better handles scattered filing times throughout the day
Next Steps:
If this looks good, we can:
Make this change in our dev environment first.
Keep an eye on how it performs
Make sure everything runs smoothly with the more frequent processing then we can change it in the test and prod env.
Thanks for the feedback! You make a good point about the environment.
About the job start time (00/05/55):
Starting at 00 (current): runs would be at 00, 15, 30, 45
Starting at 05: Would run at 05, 20, 35, 50
Starting at 55: Would run at 55, 10, 25, 40
From the data in CPROD, we see that most filings happen at 00:00/00:01, so starting the job at 00 may allow us to process these peak filings right away. In LEAR, we know COA filings are set to be effective at 12:01 am. and based on COLIN's data patterns, LEAR might follow a similar trend(though we're not entirely sure)
If we start the job at 55 or 05, there could be some delay in processing midnight filings. I prefer starting the job at 00 to ensure we handle these peak filings on time.
Would you prefer 55/05 for any specific considerations? I’m curious and love to hear your thoughts on this.
Thanks for bringing up the point about staggered jobs. I did some analysis hope of helping with this decision:
I queried CPROD to check FE filings with a 1-60 minute gap between submission and effective time over the past 365 days. Here's what I found:
Distribution Pattern:
Total filings within 60-min window: ~35 filings
Very evenly distributed across different minutes
No significant clustering at any specific minute mark
Slightly higher counts at 10 min (3 filings) and a few points with 2 filings
It seems like:
The data shows users set FE times quite randomly within the hour
No clear pattern of preferring specific minutes
Very low volume overall
According to this scattered pattern and low volume, the timing impact on users would be minimal whether we run at 00, 05, or 55. The system load consideration might be more important here.
What are your thoughts on this?
Feedback from Sev:
Based on the analysis, most filings are concentrated between 23:00 and 01:00. Aside from COA (which has specific scheduled time). After discussing with Sev, we have decided to keep the scheduling at 00/15/30/45 minutes past each hour.
In the Dev env, the configuration for FE filings was updated to run every 15 minutes. The cron job's execution times were verified, as shown below. it runs at 00, 15, 30, and 45 minutes.
Two future effective companies were incorporated in Dev for testing: Scenario 1:
Time: Filed and paid at 4:14 PM for a BEN company:BC0883684 to become effective at 4:30 PM on the same day.
Result: The company became effective as expected at 4:30 PM.
Scenario 2:
Time: Filed and paid at 4:25 PM for a BC company:BC0883685 to become effective at 4:43 PM on the same day.
Result: The company became effective at 4:45 PM.
Activity
vikas-gov commentedon Oct 24, 2024
AimeeGao commentedon Nov 7, 2024
Analysis Notes:
We analyzed the filing times for Future Effective (FE) filings for CORP in the COLIN PROD database over multiple time periods (30, 90, 180, and 365 days). The data can be found in this spreadsheet.
Key Findings(As per 1 Year Data):
Technical Considerations:
I talked with Vysakh about making our processing more frequent, and he confirmed some important points:
Based on this analysis, I think we can change the cron schedule to run every 15 minutes (*/15 * * * *). This change will:
Next Steps:
If this looks good, we can:
severinbeauvais commentedon Nov 7, 2024
Awesome analysis! I agree with this.
Note that FE times in Dev and Test will be completely different from Prod.
Question: any thoughts about changing when this job runs -- 00 or 05 or 55?
AimeeGao commentedon Nov 7, 2024
Thanks for the feedback! You make a good point about the environment.
About the job start time (00/05/55):
From the data in CPROD, we see that most filings happen at 00:00/00:01, so starting the job at 00 may allow us to process these peak filings right away. In LEAR, we know COA filings are set to be effective at 12:01 am. and based on COLIN's data patterns, LEAR might follow a similar trend(though we're not entirely sure)
If we start the job at 55 or 05, there could be some delay in processing midnight filings. I prefer starting the job at 00 to ensure we handle these peak filings on time.
Would you prefer 55/05 for any specific considerations? I’m curious and love to hear your thoughts on this.
severinbeauvais commentedon Nov 7, 2024
Often, jobs are staggered (ie, not right at top of the hour) to reduce the load impact of many jobs running at once.
I don't know which consideration is most important here.
AimeeGao commentedon Nov 7, 2024
Thanks for bringing up the point about staggered jobs. I did some analysis hope of helping with this decision:
I queried CPROD to check FE filings with a 1-60 minute gap between submission and effective time over the past 365 days. Here's what I found:
Distribution Pattern:
It seems like:
According to this scattered pattern and low volume, the timing impact on users would be minimal whether we run at 00, 05, or 55. The system load consideration might be more important here.
What are your thoughts on this?
Feedback from Sev:
Based on the analysis, most filings are concentrated between 23:00 and 01:00. Aside from COA (which has specific scheduled time). After discussing with Sev, we have decided to keep the scheduling at 00/15/30/45 minutes past each hour.
AimeeGao commentedon Nov 8, 2024
QA Notes:
In the Dev env, the configuration for FE filings was updated to run every 15 minutes. The cron job's execution times were verified, as shown below. it runs at 00, 15, 30, and 45 minutes.
Two future effective companies were incorporated in Dev for testing:

Scenario 1:
Time: Filed and paid at 4:14 PM for a BEN company:BC0883684 to become effective at 4:30 PM on the same day.
Result: The company became effective as expected at 4:30 PM.
Scenario 2:


Time: Filed and paid at 4:25 PM for a BC company:BC0883685 to become effective at 4:43 PM on the same day.
Result: The company became effective at 4:45 PM.
severinbeauvais commentedon Nov 8, 2024
Excellent testing! Amazing job, Aimee!
AimeeGao commentedon Nov 8, 2024
Thank you so much, Sev! (^-^) I really appreciate all your guidance and support on this task.
vishnup0422 commentedon Nov 8, 2024
Thanks for the detailed instructions Aimee,
I filed a future effective filings for IA filing
Voluntary Dissolution
