pub struct PostgresSystemDatabase { /* private fields */ }Expand description
Postgres-backed system database. Owns a deadpool connection pool.
Construct with PostgresSystemDatabase::connect, passing either a
postgres:// URL or the URL handed back by pglite_oxide::PgliteServer
(same wire protocol — that’s why one backend covers dev, test, and prod).
Implementations§
Trait Implementations§
Source§impl SystemDatabase for PostgresSystemDatabase
impl SystemDatabase for PostgresSystemDatabase
Source§fn init_workflow<'life0, 'async_trait>(
&'life0 self,
init: InitWorkflow,
) -> Pin<Box<dyn Future<Output = JournioResult<InitWorkflowResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init_workflow<'life0, 'async_trait>(
&'life0 self,
init: InitWorkflow,
) -> Pin<Box<dyn Future<Output = JournioResult<InitWorkflowResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Ported from insertWorkflowStatus (system_database.go:936).
Source§fn record_workflow_result<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
status: WorkflowStatusType,
output: Option<&'life2 Interchange>,
error: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn record_workflow_result<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
status: WorkflowStatusType,
output: Option<&'life2 Interchange>,
error: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Ported from updateWorkflowOutcome (system_database.go:1480).
Source§fn record_step_output<'life0, 'life1, 'async_trait>(
&'life0 self,
step: &'life1 StepRecord,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_step_output<'life0, 'life1, 'async_trait>(
&'life0 self,
step: &'life1 StepRecord,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Ported from recordOperationResult (system_database.go:2215).
Source§fn get_steps<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<StepRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_steps<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<StepRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Ported from getWorkflowSteps (system_database.go:2446).
Source§fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
destination_id: &'life1 str,
topic: &'life2 str,
message: &'life3 Interchange,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
destination_id: &'life1 str,
topic: &'life2 str,
message: &'life3 Interchange,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Ported from send (system_database.go:3346).
Source§fn consume_notification<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
topic: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<Notification>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn consume_notification<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
topic: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<Notification>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Ported from the consume half of recv (system_database.go:3378).
Atomically marks the oldest unconsumed message consumed = true and
returns it. Non-blocking.
Source§fn set_event<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
value: &'life3 Interchange,
function_id: i32,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn set_event<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
value: &'life3 Interchange,
function_id: i32,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Ported from setEvent (system_database.go:3573). Upserts
workflow_events and appends workflow_events_history keyed by
function_id (the calling step id).
Source§fn get_event_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<Interchange>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_event_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<Interchange>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Ported from the query half of getEvent (system_database.go:3615).
Non-blocking: returns the current value, or None if unset.
Source§fn migrate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn migrate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
runMigrations).Source§fn launch<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn launch<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
systemDB.launch.Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_workflow_status<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_workflow_status<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getWorkflowStatus-style single-row
selects scattered through system_database.go.Source§fn list_workflows<'life0, 'async_trait>(
&'life0 self,
limit: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_workflows<'life0, 'async_trait>(
&'life0 self,
limit: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
listWorkflows
(system_database.go:1184). The limit/offset filtering grows as the
port progresses; for now a simple cap.Source§fn cancel_workflows<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_workflows<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn resume_workflows<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
queue_name: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resume_workflows<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
queue_name: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
queue_name, or the internal queue
if None. Returns the subset of IDs that already existed.Source§fn get_workflow_children<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_workflow_children<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
workflow_id.Source§fn fork_workflow<'life0, 'async_trait>(
&'life0 self,
input: ForkWorkflow,
) -> Pin<Box<dyn Future<Output = JournioResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fork_workflow<'life0, 'async_trait>(
&'life0 self,
input: ForkWorkflow,
) -> Pin<Box<dyn Future<Output = JournioResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<QueueConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<QueueConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn upsert_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue: &'life1 QueueConfig,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue: &'life1 QueueConfig,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn dequeue_workflow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
executor_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn dequeue_workflow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
executor_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
queue_name
(Postgres: FOR UPDATE SKIP LOCKED). Ported from workflowQueue.loop.Source§fn list_runnable_queues<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_runnable_queues<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_queues<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<QueueConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_queues<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<QueueConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
queues table — ported from
listQueues (system_database.go:4434). Used by the admin server’s
queue-metadata endpoint.Source§fn wait_for_notification<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
topic: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wait_for_notification<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
topic: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
recv. Backends without a
wakeup path can ignore it; the caller will re-poll after the timeout.Source§fn wait_for_event<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wait_for_event<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
get_event.Source§fn write_stream<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
value: &'life3 str,
function_id: i32,
serialization: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn write_stream<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
value: &'life3 str,
function_id: i32,
serialization: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn read_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
from_offset: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<(Vec<StreamEntry>, bool)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
from_offset: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<(Vec<StreamEntry>, bool)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
from_offset, ordered by offset. Returns the
drained entries plus whether the stream has been closed.Source§fn wait_for_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wait_for_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
key: &'life2 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
read_stream.Source§fn get_workflows_for_recovery<'life0, 'life1, 'async_trait>(
&'life0 self,
executor_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_workflows_for_recovery<'life0, 'life1, 'async_trait>(
&'life0 self,
executor_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
workflowRecovery in recovery.go + system_database.go.Source§fn delete_workflows_before<'life0, 'async_trait>(
&'life0 self,
before: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_workflows_before<'life0, 'async_trait>(
&'life0 self,
before: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
before — ported from
permanentDeleteWorkflows.Source§fn upsert_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule: &'life1 WorkflowSchedule,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule: &'life1 WorkflowSchedule,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list_schedules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowSchedule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_schedules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowSchedule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn update_schedule_last_fired_at<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
fired_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_schedule_last_fired_at<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
fired_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowSchedule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<WorkflowSchedule>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
ScheduleNamePrefixes branch of listSchedules
(system_database.go:4766). Returns None if no schedule matches.Source§fn delete_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
deleteSchedule
(system_database.go:4928).Source§fn update_schedule_status<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
status: ScheduleStatus,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_schedule_status<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_name: &'life1 str,
status: ScheduleStatus,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
updateSchedule
(system_database.go). Used by pause/resume.Source§fn create_application_version<'life0, 'life1, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_application_version<'life0, 'life1, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
createApplicationVersion.Source§fn update_application_version_timestamp<'life0, 'life1, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
timestamp_ms: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_application_version_timestamp<'life0, 'life1, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
timestamp_ms: i64,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
updateApplicationVersionTimestamp.Source§fn list_application_versions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<VersionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_application_versions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<VersionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
listApplicationVersions (system_database.go:5174).Source§fn get_latest_application_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<VersionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_latest_application_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = JournioResult<Option<VersionInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getLatestApplicationVersion. Returns None when none are registered.Source§fn set_workflow_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
delay_until: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_workflow_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_id: &'life1 str,
delay_until: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
setWorkflowDelay (system_database.go). No-op for workflows not in
the DELAYED status.Source§fn delete_workflows<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
delete_children: bool,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_workflows<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow_ids: &'life1 [String],
delete_children: bool,
) -> Pin<Box<dyn Future<Output = JournioResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
deleteWorkflows (system_database.go). When delete_children is
true, descendant workflows are deleted recursively first.Source§fn list_workflows_filtered<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 ListWorkflowsFilter,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_workflows_filtered<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 ListWorkflowsFilter,
) -> Pin<Box<dyn Future<Output = JournioResult<Vec<WorkflowStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
listWorkflowsOptions branch of listWorkflows
(system_database.go:1184). Backends translate the filter into their
native parameterization (Postgres ANY($n) arrays vs. SQLite
QueryBuilder separated lists).