Skip to content

Commit

Permalink
chore!: Rename helpers mod to worker_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
leo91000 committed Feb 7, 2024
1 parent 71f496d commit d093520
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pub mod builder;
pub mod errors;
pub mod helpers;
pub mod job;
pub mod runner;
pub mod sql;
pub mod streams;
pub mod utils;
pub mod worker_utils;

pub use crate::job::*;
pub use crate::sql::add_job::{JobKeyMode, JobSpec};
Expand All @@ -14,5 +14,5 @@ pub use graphile_worker_macros::task;
pub use graphile_worker_task_handler::*;

pub use builder::{WorkerBuildError, WorkerOptions};
pub use helpers::WorkerUtils;
pub use runner::{Worker, WorkerContext};
pub use worker_utils::WorkerUtils;
2 changes: 1 addition & 1 deletion src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use std::time::Duration;
use std::{collections::HashMap, time::Instant};

use crate::errors::GraphileWorkerError;
use crate::helpers::WorkerUtils;
use crate::job::Job;
use crate::sql::{get_job::get_job, task_identifiers::TaskDetails};
use crate::streams::{job_signal_stream, job_stream};
use crate::worker_utils::WorkerUtils;
use futures::{try_join, StreamExt, TryStreamExt};
use getset::Getters;
use graphile_worker_crontab_runner::{cron_main, ScheduleCronJobError};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/worker_utils_cleanup.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use chrono::Utc;
use graphile_worker::{helpers::CleanupTask, JobSpec};
use graphile_worker::{worker_utils::CleanupTask, JobSpec};
use indoc::formatdoc;

use crate::helpers::with_test_db;
Expand Down
2 changes: 1 addition & 1 deletion tests/worker_utils_reschedule_jobs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use chrono::{Timelike, Utc};
use graphile_worker::helpers::RescheduleJobOptions;
use graphile_worker::worker_utils::RescheduleJobOptions;

use crate::helpers::{with_test_db, SelectionOfJobs};

Expand Down

0 comments on commit d093520

Please sign in to comment.