-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_tasks.py
More file actions
30 lines (25 loc) · 861 Bytes
/
Copy pathgenerate_tasks.py
File metadata and controls
30 lines (25 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
import argparse
import json
import sys
import time
def main():
parser = argparse.ArgumentParser(description="Generate standard tasks.")
parser.add_argument('--n', type=int, default=5, help="Number of tasks to generate")
args = parser.parse_args()
print(f"Starting standard task generation (Target: {args.n} tasks)...")
tasks = []
for i in range(1, args.n + 1):
time.sleep(0.1) # Simulate generation workload
task = {
"task_id": f"task_std_{i:03d}",
"type": "standard",
"complexity": "moderate",
"description": f"Generated standard task #{i}"
}
tasks.append(task)
print(f"-> Created {task['task_id']}")
print(f"Successfully generated {len(tasks)} standard tasks.")
sys.exit(0)
if __name__ == '__main__':
main()