async setJobStatus(jobName, status) {
        debug(`Setting status for job ${jobName} to ${status}`);
        try {
            const result = await db.knex('jobs')
                .update({
                    status: status,
                    updated_at: new Date()
                })
                .where('name', jobName);

            if (result === 0) {
                await db.knex('jobs').insert({
                    id: new ObjectID().toHexString(),
                    name: jobName,
                    status: status,
                    created_at: new Date(),
                    updated_at: new Date()
                });
            }
        } catch (err) {
            debug(`Error setting status for job ${jobName}: ${err.message}`);
            throw err;
        }
    }
Sets the status of the specified email analytics job.
@param {EmailAnalyticsJobName} jobName - The name of the job to update.
@param {'started'|'finished'|'failed'} status - The new status of the job.
@returns {Promise<void>}
@description
Updates the `status` column of the specified job in the `jobs` table with the provided status.
This is used to keep track of the current state of the job.