Skip to content

Commit

Permalink
Fixing cron schedule on the dc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienlevert committed Sep 17, 2024
1 parent aff5220 commit fac17e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ This policy applies to all employees, contractors, consultants, temporary and ot
- Sensitive data must be securely erased from IT assets before disposal to prevent unauthorized access.
- Records of asset disposal must be maintained, including details such as disposal date, method, and recipient.

### 3.5 Security
### 3.5 Asset Refresh

To ensure that all employees have access to up-to-date and efficient technology, the following device refresh policy is established:

- **Junior and Senior Roles**: Employees in junior and senior roles are eligible to refresh their devices every four years.
- **Principal and Partner Roles**: Employees in principal roles are eligible to refresh their devices every two years.

### 3.6 Security

- Security measures must be implemented to protect IT assets from unauthorized access, theft, and damage.
- Access controls must be established to restrict access to sensitive IT assets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ export async function retractConnection(timer: Timer, context: InvocationContext
await deleteConnection(config);
}

const currentDate = new Date();
const cronExpression = `0 0 0 ${currentDate.getUTCMonth()} ${currentDate.getUTCDay()} *`;
app.timer('deployConnection', {
schedule: '0 0 0 30 2 *',
// Runs every year
schedule: cronExpression,
runOnStartup: process.env.AZURE_FUNCTIONS_ENVIRONMENT === 'Development',
handler: deployConnection
});

app.timer('retractConnection', {
schedule: '0 0 0 30 2 *',
// Runs every year
schedule: cronExpression,
runOnStartup: false,
handler: retractConnection
});

0 comments on commit fac17e5

Please sign in to comment.