MCPcopy Create free account
hub / github.com/diffgram/diffgram / remove_job_scheduling

Function remove_job_scheduling

shared/scheduler/job_scheduling.py:7–19  ·  view source on GitHub ↗
(workflow_id: int, project_id: int)

Source from the content-addressed store, hash-verified

5
6
7def remove_job_scheduling(workflow_id: int, project_id: int):
8 msg_data = {
9 'workflow_id': workflow_id,
10 'project_id': project_id,
11 'action': 'remove',
12 'cron_expression': '',
13 }
14 logger.info(f'Removing Task Schedule {msg_data}')
15 # Send message for batch processing on Rabbit
16 queueclient = QueueClient()
17 queueclient.send_message(message = msg_data,
18 routing_key = RoutingKeys.scheduler.value,
19 exchange = Exchanges.scheduler.value)
20
21
22def add_job_scheduling(workflow_id: int, project_id: int, cron_expression: str):

Callers 2

flow_update_coreFunction · 0.90
action_update_coreFunction · 0.90

Calls 2

send_messageMethod · 0.95
QueueClientClass · 0.90

Tested by

no test coverage detected